clang  3.7.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 930 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 931 of file ModuleMap.cpp.

Member Function Documentation

void clang::MMToken::clear ( )
inline

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

References StringData, and StringLength.

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

Definition at line 971 of file ModuleMap.cpp.

Member Data Documentation

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

Definition at line 960 of file ModuleMap.cpp.

Referenced by clear(), and getLocation().

const char* clang::MMToken::StringData

Definition at line 962 of file ModuleMap.cpp.

Referenced by clear(), and getString().

unsigned clang::MMToken::StringLength

Definition at line 961 of file ModuleMap.cpp.

Referenced by clear(), and getString().


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