Home
last modified time | relevance | path

Searched refs:MacroInfo (Results 1 – 25 of 34) sorted by relevance

12

/external/clang/include/clang/Lex/
DMacroInfo.h27 class MacroInfo {
40 MacroInfo *PreviousDefinition;
109 ~MacroInfo() { in ~MacroInfo()
114 MacroInfo(SourceLocation DefLoc);
115 MacroInfo(const MacroInfo &MI, llvm::BumpPtrAllocator &PPAllocator);
127 this->~MacroInfo(); in Destroy()
154 void setPreviousDefinition(MacroInfo *PreviousDef) { in setPreviousDefinition()
160 MacroInfo *getPreviousDefinition() { return PreviousDefinition; } in getPreviousDefinition()
172 bool isIdenticalTo(const MacroInfo &Other, Preprocessor &PP) const;
DPreprocessor.h270 MacroInfo *MI;
272 MacroExpandsInfo(Token Tok, MacroInfo *MI, SourceRange Range) in MacroExpandsInfo()
280 llvm::DenseMap<IdentifierInfo*, MacroInfo*> Macros;
300 llvm::DenseMap<IdentifierInfo*, std::vector<MacroInfo*> > PragmaPushMacroInfo;
353 MacroInfo MI;
366 MacroInfo *getInfoForMacro(IdentifierInfo *II) const;
463 MacroInfo *getMacroInfo(IdentifierInfo *II) const { in getMacroInfo()
471 void setMacroInfo(IdentifierInfo *II, MacroInfo *MI,
481 MacroInfo*>::const_iterator macro_iterator;
572 void EnterMacro(Token &Identifier, SourceLocation ILEnd, MacroInfo *Macro,
[all …]
DCodeCompletionHandler.h20 class MacroInfo; variable
60 MacroInfo *MacroInfo, in CodeCompleteMacroArgument() argument
DTokenLexer.h20 class MacroInfo; variable
33 MacroInfo *Macro;
101 TokenLexer(Token &Tok, SourceLocation ILEnd, MacroInfo *MI, in TokenLexer()
111 void Init(Token &Tok, SourceLocation ILEnd, MacroInfo *MI,
DPPCallbacks.h28 class MacroInfo; variable
166 virtual void MacroExpands(const Token &MacroNameTok, const MacroInfo* MI, in MacroExpands()
171 virtual void MacroDefined(const Token &MacroNameTok, const MacroInfo *MI) { in MacroDefined()
177 virtual void MacroUndefined(const Token &MacroNameTok, const MacroInfo *MI) { in MacroUndefined()
318 virtual void MacroExpands(const Token &MacroNameTok, const MacroInfo* MI, in MacroExpands()
324 virtual void MacroDefined(const Token &MacroNameTok, const MacroInfo *MI) { in MacroDefined()
329 virtual void MacroUndefined(const Token &MacroNameTok, const MacroInfo *MI) { in MacroUndefined()
DPreprocessingRecord.h357 llvm::DenseMap<const MacroInfo *, PPEntityID> MacroDefinitions;
388 void RegisterMacroDefinition(MacroInfo *Macro, PPEntityID PPID);
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/
DMacroInfo.cpp18 MacroInfo::MacroInfo(SourceLocation DefLoc) in MacroInfo() function in MacroInfo
37 MacroInfo::MacroInfo(const MacroInfo &MI, llvm::BumpPtrAllocator &PPAllocator) in MacroInfo() function in MacroInfo
61 unsigned MacroInfo::getDefinitionLengthSlow(SourceManager &SM) const { in getDefinitionLengthSlow()
94 bool MacroInfo::isIdenticalTo(const MacroInfo &Other, Preprocessor &PP) const { in isIdenticalTo()
DMacroArgs.h22 class MacroInfo; variable
62 static MacroArgs *create(const MacroInfo *MI,
87 getPreExpArgument(unsigned Arg, const MacroInfo *MI, Preprocessor &PP);
DPPDirectives.cpp33 MacroInfo *Preprocessor::AllocateMacroInfo() { in AllocateMacroInfo()
53 MacroInfo *Preprocessor::AllocateMacroInfo(SourceLocation L) { in AllocateMacroInfo()
54 MacroInfo *MI = AllocateMacroInfo(); in AllocateMacroInfo()
55 new (MI) MacroInfo(L); in AllocateMacroInfo()
59 MacroInfo *Preprocessor::CloneMacroInfo(const MacroInfo &MacroToClone) { in CloneMacroInfo()
60 MacroInfo *MI = AllocateMacroInfo(); in CloneMacroInfo()
61 new (MI) MacroInfo(MacroToClone, BP); in CloneMacroInfo()
67 void Preprocessor::ReleaseMacroInfo(MacroInfo *MI) { in ReleaseMacroInfo()
1111 MacroInfo *MI = getMacroInfo(MacroNameTok.getIdentifierInfo()); in HandleMacroPublicDirective()
1142 MacroInfo *MI = getMacroInfo(MacroNameTok.getIdentifierInfo()); in HandleMacroPrivateDirective()
[all …]
DPreprocessingRecord.cpp315 void PreprocessingRecord::RegisterMacroDefinition(MacroInfo *Macro, in RegisterMacroDefinition()
348 MacroDefinition *PreprocessingRecord::findMacroDefinition(const MacroInfo *MI) { in findMacroDefinition()
349 llvm::DenseMap<const MacroInfo *, PPEntityID>::iterator Pos in findMacroDefinition()
360 void PreprocessingRecord::MacroExpands(const Token &Id, const MacroInfo* MI, in MacroExpands()
375 const MacroInfo *MI) { in MacroDefined()
383 const MacroInfo *MI) { in MacroUndefined()
DPPMacroExpansion.cpp34 MacroInfo *Preprocessor::getInfoForMacro(IdentifierInfo *II) const { in getInfoForMacro()
50 void Preprocessor::setMacroInfo(IdentifierInfo *II, MacroInfo *MI, in setMacroInfo()
76 MacroInfo *MI = PP.AllocateMacroInfo(SourceLocation()); in RegisterBuiltinMacro()
116 static bool isTrivialSingleTokenExpansion(const MacroInfo *MI, in isTrivialSingleTokenExpansion()
142 for (MacroInfo::arg_iterator I = MI->arg_begin(), E = MI->arg_end(); in isTrivialSingleTokenExpansion()
197 MacroInfo *MI) { in HandleMacroExpandedIdentifier()
330 if (MacroInfo *NewMI = getMacroInfo(NewII)) in HandleMacroExpandedIdentifier()
357 MacroInfo *MI, in ReadFunctionLikeMacroArgs()
428 if (MacroInfo *MI = getMacroInfo(Tok.getIdentifierInfo())) in ReadFunctionLikeMacroArgs()
1171 void Preprocessor::markMacroAsUsed(MacroInfo *MI) { in markMacroAsUsed()
DCMakeLists.txt11 MacroInfo.cpp
DAndroid.mk19 MacroInfo.cpp \
DMacroArgs.cpp25 MacroArgs *MacroArgs::create(const MacroInfo *MI, in create()
148 MacroArgs::getPreExpArgument(unsigned Arg, const MacroInfo *MI, in getPreExpArgument()
DPragma.cpp704 MacroInfo *MI = getMacroInfo(IdentInfo); in HandlePragmaPushMacro()
706 MacroInfo *MacroCopyToPush = 0; in HandlePragmaPushMacro()
733 llvm::DenseMap<IdentifierInfo*, std::vector<MacroInfo*> >::iterator iter = in HandlePragmaPopMacro()
737 if (MacroInfo *CurrentMI = getMacroInfo(IdentInfo)) { in HandlePragmaPopMacro()
744 MacroInfo *MacroToReInstall = iter->second.back(); in HandlePragmaPopMacro()
DPreprocessor.cpp211 void Preprocessor::DumpMacro(const MacroInfo &MI) const { in DumpMacro()
554 if (MacroInfo *MI = getMacroInfo(&II)) { in HandleIdentifier()
DPPLexerChange.cpp160 MacroInfo *Macro, MacroArgs *Args) { in EnterMacro()
DTokenLexer.cpp26 void TokenLexer::Init(Token &Tok, SourceLocation ELEnd, MacroInfo *MI, in Init()
/external/clang/lib/Frontend/
DPrintPreprocessedOutput.cpp35 static void PrintMacroDefinition(const IdentifierInfo &II, const MacroInfo &MI, in PrintMacroDefinition()
42 MacroInfo::arg_iterator AI = MI.arg_begin(), E = MI.arg_end(); in PrintMacroDefinition()
67 for (MacroInfo::tokens_iterator I = MI.tokens_begin(), E = MI.tokens_end(); in PrintMacroDefinition()
157 void MacroDefined(const Token &MacroNameTok, const MacroInfo *MI);
160 void MacroUndefined(const Token &MacroNameTok, const MacroInfo *MI);
302 const MacroInfo *MI) { in MacroDefined()
314 const MacroInfo *MI) { in MacroUndefined()
554 typedef std::pair<IdentifierInfo*, MacroInfo*> id_macro_pair;
582 MacroInfo &MI = *MacrosByID[i].second; in DoPrintMacros()
/external/jsilver/src/com/google/clearsilver/jsilver/compiler/
DTemplateTranslator.java126 private static class MacroInfo { class in TemplateTranslator
141 private final Map<String, MacroInfo> macroMap = new HashMap<String, MacroInfo>();
148 private final Queue<MacroInfo> macroQueue = new LinkedList<MacroInfo>();
162 MacroInfo info = new MacroInfo(); in addMacro()
213 MacroInfo curr = macroQueue.remove(); in caseStart()
731 MacroInfo macroInfo = macroMap.get(name); in caseACallCommand()
/external/clang/unittests/Basic/
DSourceManagerTest.cpp244 virtual void MacroDefined(const Token &MacroNameTok, const MacroInfo *MI) { in MacroDefined()
249 virtual void MacroExpands(const Token &MacroNameTok, const MacroInfo* MI, in MacroExpands()
/external/clang/tools/libclang/
DIndexing.cpp81 virtual void MacroDefined(const Token &Id, const MacroInfo *MI) { in MacroDefined()
86 virtual void MacroUndefined(const Token &MacroNameTok, const MacroInfo *MI) { in MacroUndefined()
90 virtual void MacroExpands(const Token &MacroNameTok, const MacroInfo* MI, in MacroExpands()
DCXCursor.cpp1208 const IdentifierInfo *MacroInfo = definition->getName(); in clang_getCursorCompletionString() local
1210 CodeCompletionResult Result(const_cast<IdentifierInfo *>(MacroInfo)); in clang_getCursorCompletionString()
/external/clang/lib/Serialization/
DASTWriter.cpp1637 const std::pair<const IdentifierInfo *, MacroInfo *> &X = in compareMacroDefinitions()
1638 *(const std::pair<const IdentifierInfo *, MacroInfo *>*)XPtr; in compareMacroDefinitions()
1639 const std::pair<const IdentifierInfo *, MacroInfo *> &Y = in compareMacroDefinitions()
1640 *(const std::pair<const IdentifierInfo *, MacroInfo *>*)YPtr; in compareMacroDefinitions()
1674 SmallVector<std::pair<const IdentifierInfo *, MacroInfo *>, 2> in WritePreprocessor()
1705 MacroInfo *MI = MacrosToEmit[I].second; in WritePreprocessor()
1738 for (MacroInfo::arg_iterator I = MI->arg_begin(), E = MI->arg_end(); in WritePreprocessor()
2491 bool isInterestingIdentifier(IdentifierInfo *II, MacroInfo *&Macro) { in isInterestingIdentifier()
2502 bool hasMacroDefinition(IdentifierInfo *II, MacroInfo *&Macro) { in hasMacroDefinition()
2531 MacroInfo *Macro = 0; in EmitKeyDataLength()
[all …]
/external/clang/lib/Parse/
DParser.cpp1739 MacroInfo *MacroInfo, in CodeCompleteMacroArgument() argument
1741 Actions.CodeCompletePreprocessorMacroArgument(getCurScope(), Macro, MacroInfo, in CodeCompleteMacroArgument()

12