/external/clang/include/clang/Lex/ |
CodeCompletionHandler.h | 20 class MacroInfo; 60 MacroInfo *MacroInfo,
|
MacroInfo.h | 1 //===--- MacroInfo.h - Information about #defined identifiers ---*- C++ -*-===// 10 // This file defines the MacroInfo interface. 25 /// MacroInfo - Each identifier that is #define'd has an instance of this class 27 class MacroInfo { 104 ~MacroInfo() { 109 MacroInfo(SourceLocation DefLoc); 110 MacroInfo(const MacroInfo &MI, llvm::BumpPtrAllocator &PPAllocator); 119 /// Destroy - destroy this MacroInfo object. 122 this->~MacroInfo(); [all...] |
TokenLexer.h | 20 class MacroInfo; 33 MacroInfo *Macro;
|
PPCallbacks.h | 27 class MacroInfo; 169 virtual void MacroExpands(const Token &MacroNameTok, const MacroInfo* MI, 174 virtual void MacroDefined(const Token &MacroNameTok, const MacroInfo *MI) { 179 virtual void MacroUndefined(const Token &MacroNameTok, const MacroInfo *MI) { 319 virtual void MacroExpands(const Token &MacroNameTok, const MacroInfo* MI, 325 virtual void MacroDefined(const Token &MacroNameTok, const MacroInfo *MI) { 330 virtual void MacroUndefined(const Token &MacroNameTok, const MacroInfo *MI) {
|
Preprocessor.h | 17 #include "clang/Lex/MacroInfo.h" 259 llvm::DenseMap<IdentifierInfo*, MacroInfo*> Macros; 263 /// something like MacroInfo*. The benefit of this is that when we are 277 /// push_macro directive, we keep a MacroInfo stack used to restore 279 llvm::DenseMap<IdentifierInfo*, std::vector<MacroInfo*> > PragmaPushMacroInfo; 332 MacroInfo MI; 341 /// MICache - A "freelist" of MacroInfo objects that can be reused for quick 345 MacroInfo *getInfoForMacro(IdentifierInfo *II) const; 437 /// getMacroInfo - Given an identifier, return the MacroInfo it is #defined to 439 MacroInfo *getMacroInfo(IdentifierInfo *II) const [all...] |
PreprocessingRecord.h | 356 /// \brief Mapping from MacroInfo structures to their definitions. 357 llvm::DenseMap<const MacroInfo *, PPEntityID> MacroDefinitions; 388 void RegisterMacroDefinition(MacroInfo *Macro, PPEntityID PPID); 588 /// \c MacroInfo. 589 MacroDefinition *findMacroDefinition(const MacroInfo *MI); 592 virtual void MacroExpands(const Token &Id, const MacroInfo* MI, 594 virtual void MacroDefined(const Token &Id, const MacroInfo *MI); 595 virtual void MacroUndefined(const Token &Id, const MacroInfo *MI);
|
/external/clang/lib/Lex/ |
MacroInfo.cpp | 1 //===--- MacroInfo.cpp - Information about #defined identifiers -----------===// 10 // This file implements the MacroInfo interface. 14 #include "clang/Lex/MacroInfo.h" 18 MacroInfo::MacroInfo(SourceLocation DefLoc) : Location(DefLoc) { 36 MacroInfo::MacroInfo(const MacroInfo &MI, llvm::BumpPtrAllocator &PPAllocator) { 59 unsigned MacroInfo::getDefinitionLengthSlow(SourceManager &SM) const { 92 bool MacroInfo::isIdenticalTo(const MacroInfo &Other, Preprocessor &PP) const [all...] |
MacroArgs.h | 22 class MacroInfo; 62 static MacroArgs *create(const MacroInfo *MI, 87 getPreExpArgument(unsigned Arg, const MacroInfo *MI, Preprocessor &PP);
|
Android.mk | 19 MacroInfo.cpp \
|
PPMacroExpansion.cpp | 17 #include "clang/Lex/MacroInfo.h" 34 MacroInfo *Preprocessor::getInfoForMacro(IdentifierInfo *II) const { 37 llvm::DenseMap<IdentifierInfo*, MacroInfo*>::const_iterator Pos 50 void Preprocessor::setMacroInfo(IdentifierInfo *II, MacroInfo *MI, 72 MacroInfo *MI = PP.AllocateMacroInfo(SourceLocation()); 112 static bool isTrivialSingleTokenExpansion(const MacroInfo *MI, 138 for (MacroInfo::arg_iterator I = MI->arg_begin(), E = MI->arg_end(); 193 MacroInfo *MI) { 308 if (MacroInfo *NewMI = getMacroInfo(NewII)) 335 MacroInfo *MI [all...] |
PreprocessingRecord.cpp | 15 #include "clang/Lex/MacroInfo.h" 315 void PreprocessingRecord::RegisterMacroDefinition(MacroInfo *Macro, 348 MacroDefinition *PreprocessingRecord::findMacroDefinition(const MacroInfo *MI) { 349 llvm::DenseMap<const MacroInfo *, PPEntityID>::iterator Pos 360 void PreprocessingRecord::MacroExpands(const Token &Id, const MacroInfo* MI, 375 const MacroInfo *MI) { 383 const MacroInfo *MI) {
|
PPDirectives.cpp | 17 #include "clang/Lex/MacroInfo.h" 32 MacroInfo *Preprocessor::AllocateMacroInfo() { 52 MacroInfo *Preprocessor::AllocateMacroInfo(SourceLocation L) { 53 MacroInfo *MI = AllocateMacroInfo(); 54 new (MI) MacroInfo(L); 58 MacroInfo *Preprocessor::CloneMacroInfo(const MacroInfo &MacroToClone) { 59 MacroInfo *MI = AllocateMacroInfo(); 60 new (MI) MacroInfo(MacroToClone, BP); 64 /// ReleaseMacroInfo - Release the specified MacroInfo. This memory wil [all...] |
MacroArgs.cpp | 15 #include "clang/Lex/MacroInfo.h" 25 MacroArgs *MacroArgs::create(const MacroInfo *MI, 148 MacroArgs::getPreExpArgument(unsigned Arg, const MacroInfo *MI,
|
Pragma.cpp | 19 #include "clang/Lex/MacroInfo.h" 690 // Get the MacroInfo associated with IdentInfo. 691 MacroInfo *MI = getMacroInfo(IdentInfo); 693 MacroInfo *MacroCopyToPush = 0; 698 // Allow the original MacroInfo to be redefined later. 702 // Push the cloned MacroInfo so we can retrieve it later. 716 // Find the vector<MacroInfo*> associated with the macro. 717 llvm::DenseMap<IdentifierInfo*, std::vector<MacroInfo*> >::iterator iter = 720 // Release the MacroInfo currently associated with IdentInfo. 721 MacroInfo *CurrentMI = getMacroInfo(IdentInfo) [all...] |
Preprocessor.cpp | 32 #include "clang/Lex/MacroInfo.h" 210 void Preprocessor::DumpMacro(const MacroInfo &MI) const { 529 if (MacroInfo *MI = getMacroInfo(&II)) {
|
PPExpressions.cpp | 20 #include "clang/Lex/MacroInfo.h" 116 MacroInfo *Macro = PP.getMacroInfo(II);
|
/external/clang/lib/Frontend/ |
PrintPreprocessedOutput.cpp | 19 #include "clang/Lex/MacroInfo.h" 34 static void PrintMacroDefinition(const IdentifierInfo &II, const MacroInfo &MI, 41 MacroInfo::arg_iterator AI = MI.arg_begin(), E = MI.arg_end(); 66 for (MacroInfo::tokens_iterator I = MI.tokens_begin(), E = MI.tokens_end(); 151 void MacroDefined(const Token &MacroNameTok, const MacroInfo *MI); 154 void MacroUndefined(const Token &MacroNameTok, const MacroInfo *MI); 302 const MacroInfo *MI) { 314 const MacroInfo *MI) { 546 typedef std::pair<IdentifierInfo*, MacroInfo*> id_macro_pair; 570 MacroInfo &MI = *MacrosByID[i].second [all...] |
/external/jsilver/src/com/google/clearsilver/jsilver/compiler/ |
TemplateTranslator.java | 126 private static class MacroInfo { 141 private final Map<String, MacroInfo> macroMap = new HashMap<String, MacroInfo>(); 148 private final Queue<MacroInfo> macroQueue = new LinkedList<MacroInfo>(); 151 * Creates a MacroInfo object and adds it to the data structures. Also outputs statement to 162 MacroInfo info = new MacroInfo(); 213 MacroInfo curr = macroQueue.remove(); 731 MacroInfo macroInfo = macroMap.get(name) [all...] |
/external/clang/unittests/Basic/ |
SourceManagerTest.cpp | 196 virtual void MacroDefined(const Token &MacroNameTok, const MacroInfo *MI) { 201 virtual void MacroExpands(const Token &MacroNameTok, const MacroInfo* MI,
|
/external/clang/tools/libclang/ |
Indexing.cpp | 81 virtual void MacroDefined(const Token &Id, const MacroInfo *MI) { 86 virtual void MacroUndefined(const Token &MacroNameTok, const MacroInfo *MI) { 90 virtual void MacroExpands(const Token &MacroNameTok, const MacroInfo* MI,
|
CXCursor.cpp | [all...] |
/external/clang/lib/Parse/ |
Parser.cpp | [all...] |
/external/clang/lib/Serialization/ |
ASTWriter.cpp | 28 #include "clang/Lex/MacroInfo.h" [all...] |
/external/clang/lib/ARCMigrate/ |
ARCMT.cpp | 459 virtual void MacroExpands(const Token &MacroNameTok, const MacroInfo *MI,
|
/external/clang/include/clang/Parse/ |
Parser.h | [all...] |