clang  3.9.0
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:
[legend]

Public Types

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

Public Member Functions

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

Public Attributes

enum clang::MMToken::TokenKind Kind
 
unsigned Location
 
unsigned StringLength
 
const char * StringData
 

Detailed Description

A token in a module map file.

Definition at line 955 of file ModuleMap.cpp.

Member Enumeration Documentation

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

Definition at line 956 of file ModuleMap.cpp.

Member Function Documentation

void clang::MMToken::clear ( )
inline

Definition at line 989 of file ModuleMap.cpp.

References EndOfFile, Location, StringData, and StringLength.

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

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

Definition at line 1002 of file ModuleMap.cpp.

References StringData, and StringLength.

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

Definition at line 996 of file ModuleMap.cpp.

Member Data Documentation

enum clang::MMToken::TokenKind clang::MMToken::Kind
unsigned clang::MMToken::Location

Definition at line 985 of file ModuleMap.cpp.

Referenced by clear(), and getLocation().

const char* clang::MMToken::StringData

Definition at line 987 of file ModuleMap.cpp.

Referenced by clear(), and getString().

unsigned clang::MMToken::StringLength

Definition at line 986 of file ModuleMap.cpp.

Referenced by clear(), and getString().


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