clang 20.0.0git
Public Member Functions | Static Public Member Functions | Friends | List of all members
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

Definition at line 56 of file SourceLocation.h.

Referenced by clang::html::AddLineNumbers(), and clang::syntax::operator<<().

◆ getSentinel()

static FileID clang::FileID::getSentinel ( )
inlinestatic

◆ isInvalid()

bool clang::FileID::isInvalid ( ) const
inline

◆ isValid()

bool clang::FileID::isValid ( ) const
inline

◆ 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.

Friends And Related Function Documentation

◆ ASTReader

friend class ASTReader
friend

Definition at line 60 of file SourceLocation.h.

◆ ASTWriter

friend class ASTWriter
friend

Definition at line 59 of file SourceLocation.h.

◆ SourceManager

friend class SourceManager
friend

Definition at line 61 of file SourceLocation.h.

◆ SourceManagerTestHelper

friend class SourceManagerTestHelper
friend

Definition at line 62 of file SourceLocation.h.


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