clang 22.0.0git
clang::FileID Class Reference

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

#include "clang/Basic/SourceLocation.h"

Public Member Functions

bool isValid () const
bool isInvalid () const
bool operator== (const FileID &RHS) const
bool operator< (const FileID &RHS) const
bool operator<= (const FileID &RHS) const
bool operator!= (const FileID &RHS) const
bool operator> (const FileID &RHS) const
bool operator>= (const FileID &RHS) const
unsigned getHashValue () const

Static Public Member Functions

static FileID getSentinel ()

Friends

class ASTWriter
class ASTReader
class SourceManager
class SourceManagerTestHelper

Detailed Description

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

Definition at line 39 of file SourceLocation.h.

Member Function Documentation

◆ getHashValue()

unsigned clang::FileID::getHashValue ( ) const
inline

◆ getSentinel()

FileID clang::FileID::getSentinel ( )
inlinestatic

◆ isInvalid()

◆ isValid()

◆ operator!=()

bool clang::FileID::operator!= ( const FileID & RHS) const
inline

Definition at line 51 of file SourceLocation.h.

◆ operator<()

bool clang::FileID::operator< ( const FileID & RHS) const
inline

Definition at line 49 of file SourceLocation.h.

◆ operator<=()

bool clang::FileID::operator<= ( const FileID & RHS) const
inline

Definition at line 50 of file SourceLocation.h.

◆ operator==()

bool clang::FileID::operator== ( const FileID & RHS) const
inline

Definition at line 48 of file SourceLocation.h.

◆ operator>()

bool clang::FileID::operator> ( const FileID & RHS) const
inline

Definition at line 52 of file SourceLocation.h.

◆ operator>=()

bool clang::FileID::operator>= ( const FileID & RHS) const
inline

Definition at line 53 of file SourceLocation.h.

◆ ASTReader

friend class ASTReader
friend

Definition at line 60 of file SourceLocation.h.

References ASTReader.

Referenced by ASTReader.

◆ ASTWriter

friend class ASTWriter
friend

Definition at line 59 of file SourceLocation.h.

References ASTWriter.

Referenced by ASTWriter.

◆ SourceManager

friend class SourceManager
friend

Definition at line 61 of file SourceLocation.h.

References SourceManager.

Referenced by SourceManager.

◆ SourceManagerTestHelper

friend class SourceManagerTestHelper
friend

Definition at line 62 of file SourceLocation.h.

References SourceManagerTestHelper, and V.

Referenced by SourceManagerTestHelper.


The documentation for this class was generated from the following file: