clang 20.0.0git
Public Types | Public Member Functions | Public Attributes | List of all members
clang::MMToken Struct Reference

A token in a module map file. More...

Public Types

enum  TokenKind {
  Comma , ConfigMacros , Conflict , EndOfFile ,
  HeaderKeyword , Identifier , Exclaim , ExcludeKeyword ,
  ExplicitKeyword , ExportKeyword , ExportAsKeyword , ExternKeyword ,
  FrameworkKeyword , LinkKeyword , ModuleKeyword , Period ,
  PrivateKeyword , UmbrellaKeyword , UseKeyword , RequiresKeyword ,
  Star , StringLiteral , IntegerLiteral , TextualKeyword ,
  LBrace , RBrace , LSquare , RSquare
}
 

Public Member Functions

void clear ()
 
bool is (TokenKind K) const
 
SourceLocation getLocation () const
 
uint64_t getInteger () const
 
StringRef getString () const
 

Public Attributes

enum clang::MMToken::TokenKind Kind
 
SourceLocation::UIntTy Location
 
unsigned StringLength
 
union {
   const char *   StringData
 
   uint64_t   IntegerValue
 
}; 
 

Detailed Description

A token in a module map file.

Definition at line 1448 of file ModuleMap.cpp.

Member Enumeration Documentation

◆ TokenKind

Enumerator
Comma 
ConfigMacros 
Conflict 
EndOfFile 
HeaderKeyword 
Identifier 
Exclaim 
ExcludeKeyword 
ExplicitKeyword 
ExportKeyword 
ExportAsKeyword 
ExternKeyword 
FrameworkKeyword 
LinkKeyword 
ModuleKeyword 
Period 
PrivateKeyword 
UmbrellaKeyword 
UseKeyword 
RequiresKeyword 
Star 
StringLiteral 
IntegerLiteral 
TextualKeyword 
LBrace 
RBrace 
LSquare 
RSquare 

Definition at line 1449 of file ModuleMap.cpp.

Member Function Documentation

◆ clear()

void clang::MMToken::clear ( )
inline

Definition at line 1490 of file ModuleMap.cpp.

References EndOfFile, Kind, Location, StringData, and StringLength.

Referenced by clang::ModuleMapParser::ModuleMapParser().

◆ getInteger()

uint64_t clang::MMToken::getInteger ( ) const
inline

Definition at line 1503 of file ModuleMap.cpp.

References IntegerValue, and Kind.

◆ getLocation()

SourceLocation clang::MMToken::getLocation ( ) const
inline

◆ getString()

StringRef clang::MMToken::getString ( ) const
inline

Definition at line 1507 of file ModuleMap.cpp.

References Kind, StringData, and StringLength.

◆ is()

bool clang::MMToken::is ( TokenKind  K) const
inline

Definition at line 1497 of file ModuleMap.cpp.

References Kind.

Member Data Documentation

◆ 

union { ... } clang::MMToken::@353

◆ IntegerValue

uint64_t clang::MMToken::IntegerValue

Definition at line 1487 of file ModuleMap.cpp.

Referenced by getInteger().

◆ Kind

enum clang::MMToken::TokenKind clang::MMToken::Kind

◆ Location

SourceLocation::UIntTy clang::MMToken::Location

Definition at line 1480 of file ModuleMap.cpp.

Referenced by clear(), and getLocation().

◆ StringData

const char* clang::MMToken::StringData

Definition at line 1484 of file ModuleMap.cpp.

Referenced by clear(), and getString().

◆ StringLength

unsigned clang::MMToken::StringLength

Definition at line 1481 of file ModuleMap.cpp.

Referenced by clear(), and getString().


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