clang  6.0.0svn
Public Types | Public Member Functions | Public Attributes | List of all members
clang::MMToken Struct Reference

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

Collaboration diagram for clang::MMToken:
Collaboration graph
[legend]

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
 
unsigned Location
 
unsigned StringLength
 
union {
   const char *   StringData
 
   uint64_t   IntegerValue
 
}; 
 

Detailed Description

A token in a module map file.

Definition at line 1192 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 1193 of file ModuleMap.cpp.

Member Function Documentation

◆ clear()

void clang::MMToken::clear ( )
inline

Definition at line 1233 of file ModuleMap.cpp.

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

◆ getInteger()

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

Definition at line 1246 of file ModuleMap.cpp.

◆ getLocation()

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

◆ getString()

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

Definition at line 1250 of file ModuleMap.cpp.

◆ is()

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

Definition at line 1240 of file ModuleMap.cpp.

Member Data Documentation

◆ @296

union { ... }

◆ IntegerValue

uint64_t clang::MMToken::IntegerValue

Definition at line 1230 of file ModuleMap.cpp.

◆ Kind

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

◆ Location

unsigned clang::MMToken::Location

Definition at line 1224 of file ModuleMap.cpp.

◆ StringData

const char* clang::MMToken::StringData

Definition at line 1228 of file ModuleMap.cpp.

◆ StringLength

unsigned clang::MMToken::StringLength

Definition at line 1225 of file ModuleMap.cpp.


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