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
- private static clang::FileID get(int V)
- public unsigned int getHashValue() const
- private int getOpaqueValue() const
- public static clang::FileID getSentinel()
- public bool isInvalid() const
- public bool isValid() const
Methods
¶static clang::FileID get(int V)
static clang::FileID get(int V)
Declared at: clang/include/clang/Basic/SourceLocation.h:62
Parameters
- int V
¶unsigned int getHashValue() const
unsigned int getHashValue() const
Declared at: clang/include/clang/Basic/SourceLocation.h:55
¶int getOpaqueValue() const
int getOpaqueValue() const
Declared at: clang/include/clang/Basic/SourceLocation.h:68
¶static clang::FileID getSentinel()
static clang::FileID getSentinel()
Declared at: clang/include/clang/Basic/SourceLocation.h:54
¶bool isInvalid() const
bool isInvalid() const
Declared at: clang/include/clang/Basic/SourceLocation.h:45
¶bool isValid() const
bool isValid() const
Declared at: clang/include/clang/Basic/SourceLocation.h:44