class FileID

Declaration

class FileID { /* full declaration omitted */ };

Description

An opaque identifier used by SourceManager which refers to a source file (MemoryBuffer) along with its # include path and # line data.

Declared at: clang/include/clang/Basic/SourceLocation.h:38

Member Variables

private int ID = 0
A mostly-opaque identifier, where 0 is "invalid", >0 is this module, and < -1 is something loaded from another module.

Method Overview

Methods

static clang::FileID get(int V)

Declared at: clang/include/clang/Basic/SourceLocation.h:62

Parameters

int V

unsigned int getHashValue() const

Declared at: clang/include/clang/Basic/SourceLocation.h:55

int getOpaqueValue() const

Declared at: clang/include/clang/Basic/SourceLocation.h:68

static clang::FileID getSentinel()

Declared at: clang/include/clang/Basic/SourceLocation.h:54

bool isInvalid() const

Declared at: clang/include/clang/Basic/SourceLocation.h:45

bool isValid() const

Declared at: clang/include/clang/Basic/SourceLocation.h:44