Home
last modified time | relevance | path

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

12

/external/clang/include/clang/Lex/
DMacroInfo.h34 class MacroInfo {
115 MacroInfo(SourceLocation DefLoc);
116 ~MacroInfo() = default;
142 bool isIdenticalTo(const MacroInfo &Other, Preprocessor &PP,
368 inline MacroInfo *getMacroInfo();
369 const MacroInfo *getMacroInfo() const { in getMacroInfo()
403 const MacroInfo *getMacroInfo() const { in getMacroInfo()
406 MacroInfo *getMacroInfo() { return getDefinition().getMacroInfo(); } in getMacroInfo()
419 MacroInfo *Info;
422 DefMacroDirective(MacroInfo *MI, SourceLocation Loc) in DefMacroDirective()
[all …]
DTokenLexer.h20 class MacroInfo; variable
33 MacroInfo *Macro;
109 TokenLexer(Token &Tok, SourceLocation ILEnd, MacroInfo *MI, in TokenLexer()
119 void Init(Token &Tok, SourceLocation ILEnd, MacroInfo *MI,
197 MacroInfo *Macro, unsigned MacroArgNo,
DCodeCompletionHandler.h20 class MacroInfo; variable
60 MacroInfo *MacroInfo, in CodeCompleteMacroArgument() argument
DMacroArgs.h22 class MacroInfo; variable
64 static MacroArgs *create(const MacroInfo *MI,
89 getPreExpArgument(unsigned Arg, const MacroInfo *MI, Preprocessor &PP);
DPreprocessor.h568 llvm::DenseMap<IdentifierInfo*, std::vector<MacroInfo*> > PragmaPushMacroInfo;
629 MacroInfo MI;
638 MacroInfo MI;
851 const MacroInfo *getMacroInfo(const IdentifierInfo *II) const { in getMacroInfo()
855 MacroInfo *getMacroInfo(const IdentifierInfo *II) { in getMacroInfo()
872 DefMacroDirective *appendDefMacroDirective(IdentifierInfo *II, MacroInfo *MI, in appendDefMacroDirective()
879 MacroInfo *MI) { in appendDefMacroDirective()
886 ModuleMacro *addModuleMacro(Module *Mod, IdentifierInfo *II, MacroInfo *Macro,
1008 void EnterMacro(Token &Identifier, SourceLocation ILEnd, MacroInfo *Macro,
1463 void DumpMacro(const MacroInfo &MI) const;
[all …]
DPreprocessingRecord.h30 class MacroInfo; variable
332 llvm::DenseMap<const MacroInfo *, MacroDefinitionRecord *> MacroDefinitions;
363 void RegisterMacroDefinition(MacroInfo *Macro, MacroDefinitionRecord *Def);
481 MacroDefinitionRecord *findMacroDefinition(const MacroInfo *MI);
509 void addMacroExpansion(const Token &Id, const MacroInfo *MI,
/external/clang/tools/libclang/
DCIndexer.h31 class MacroInfo; variable
103 MacroInfo *getMacroInfo(const IdentifierInfo &II,
107 const MacroInfo *getMacroInfo(const MacroDefinitionRecord *MacroDef,
113 MacroDefinitionRecord *checkForMacroInMacroDefinition(const MacroInfo *MI,
120 MacroDefinitionRecord *checkForMacroInMacroDefinition(const MacroInfo *MI,
/external/clang/lib/Lex/
DMacroInfo.cpp18 MacroInfo::MacroInfo(SourceLocation DefLoc) in MacroInfo() function in MacroInfo
36 unsigned MacroInfo::getDefinitionLengthSlow(SourceManager &SM) const { in getDefinitionLengthSlow()
72 bool MacroInfo::isIdenticalTo(const MacroInfo &Other, Preprocessor &PP, in isIdenticalTo()
129 void MacroInfo::dump() const { in dump()
239 IdentifierInfo *II, MacroInfo *Macro, in create()
DPreprocessingRecord.cpp321 void PreprocessingRecord::RegisterMacroDefinition(MacroInfo *Macro, in RegisterMacroDefinition()
360 PreprocessingRecord::findMacroDefinition(const MacroInfo *MI) { in findMacroDefinition()
361 llvm::DenseMap<const MacroInfo *, MacroDefinitionRecord *>::iterator Pos = in findMacroDefinition()
370 const MacroInfo *MI, in addMacroExpansion()
421 const MacroInfo *MI = MD->getMacroInfo(); in MacroDefined()
431 MD.forAllDefinitions([&](MacroInfo *MI) { MacroDefinitions.erase(MI); }); in MacroUndefined()
DPPDirectives.cpp36 MacroInfo *Preprocessor::AllocateMacroInfo() { in AllocateMacroInfo()
43 MacroInfo *Preprocessor::AllocateMacroInfo(SourceLocation L) { in AllocateMacroInfo()
44 MacroInfo *MI = AllocateMacroInfo(); in AllocateMacroInfo()
45 new (MI) MacroInfo(L); in AllocateMacroInfo()
49 MacroInfo *Preprocessor::AllocateDeserializedMacroInfo(SourceLocation L, in AllocateDeserializedMacroInfo()
51 static_assert(llvm::AlignOf<MacroInfo>::Alignment >= sizeof(SubModuleID), in AllocateDeserializedMacroInfo()
58 MacroInfo *MI = &MIChain->MI; in AllocateDeserializedMacroInfo()
59 new (MI) MacroInfo(L); in AllocateDeserializedMacroInfo()
65 DefMacroDirective *Preprocessor::AllocateDefMacroDirective(MacroInfo *MI, in AllocateDefMacroDirective()
1918 bool Preprocessor::ReadMacroDefinitionArgList(MacroInfo *MI, Token &Tok) { in ReadMacroDefinitionArgList()
[all …]
DCMakeLists.txt11 MacroInfo.cpp
DPPMacroExpansion.cpp77 MacroInfo *Macro, in addModuleMacro()
171 MacroInfo *MI = nullptr; in updateModuleMacroInfo()
276 MacroInfo *MI = PP.AllocateMacroInfo(SourceLocation()); in RegisterBuiltinMacro()
342 static bool isTrivialSingleTokenExpansion(const MacroInfo *MI, in isTrivialSingleTokenExpansion()
421 MacroInfo *MI = M.getMacroInfo(); in HandleMacroExpandedIdentifier()
500 M.forAllDefinitions([&](const MacroInfo *OtherMI) { in HandleMacroExpandedIdentifier()
553 if (MacroInfo *NewMI = getMacroInfo(NewII)) in HandleMacroExpandedIdentifier()
709 MacroInfo *MI, in ReadFunctionLikeMacroArgs()
797 if (MacroInfo *MI = getMacroInfo(Tok.getIdentifierInfo())) in ReadFunctionLikeMacroArgs()
1792 void Preprocessor::markMacroAsUsed(MacroInfo *MI) { in markMacroAsUsed()
DAndroid.mk15 MacroInfo.cpp \
DMacroArgs.cpp25 MacroArgs *MacroArgs::create(const MacroInfo *MI, in create()
147 MacroArgs::getPreExpArgument(unsigned Arg, const MacroInfo *MI, in getPreExpArgument()
DPPLexerChange.cpp163 MacroInfo *Macro, MacroArgs *Args) { in EnterMacro()
306 if (MacroInfo *MI = in HandleEndOfFile()
727 MacroInfo *Def = nullptr; in LeaveSubmodule()
DPragma.cpp569 MacroInfo *MI = getMacroInfo(IdentInfo); in HandlePragmaPushMacro()
594 llvm::DenseMap<IdentifierInfo*, std::vector<MacroInfo*> >::iterator iter = in HandlePragmaPopMacro()
598 if (MacroInfo *MI = getMacroInfo(IdentInfo)) { in HandlePragmaPopMacro()
605 MacroInfo *MacroToReInstall = iter->second.back(); in HandlePragmaPopMacro()
DTokenLexer.cpp26 void TokenLexer::Init(Token &Tok, SourceLocation ELEnd, MacroInfo *MI, in Init()
125 SmallVectorImpl<Token> &ResultToks, bool HasPasteOperator, MacroInfo *Macro, in MaybeRemoveCommaBeforeVaArgs()
DPreprocessor.cpp239 void Preprocessor::DumpMacro(const MacroInfo &MI) const { in DumpMacro()
325 static bool MacroDefinitionEquals(const MacroInfo *MI, in MacroDefinitionEquals()
/external/clang/include/clang/Serialization/
DASTDeserializationListener.h27 class MacroInfo; variable
41 virtual void MacroRead(serialization::MacroID ID, MacroInfo *MI) { } in MacroRead()
DASTWriter.h56 class MacroInfo; variable
250 llvm::DenseMap<MacroInfo *, serialization::MacroID> MacroIDs;
254 MacroInfo *MI;
654 serialization::MacroID getMacroRef(MacroInfo *MI, const IdentifierInfo *Name);
657 serialization::MacroID getMacroID(MacroInfo *MI);
857 void MacroRead(serialization::MacroID ID, MacroInfo *MI) override;
DASTReader.h586 std::vector<MacroInfo *> MacrosLoaded;
1875 MacroInfo *getMacro(serialization::MacroID ID);
2059 MacroInfo *ReadMacroRecord(ModuleFile &F, uint64_t Offset);
/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/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()
351 const MacroInfo *MI = MD->getMacroInfo(); in MacroDefined()
681 typedef std::pair<const IdentifierInfo *, MacroInfo *> id_macro_pair;
708 MacroInfo &MI = *MacrosByID[i].second; in DoPrintMacros()
DMultiplexConsumer.cpp36 void MacroRead(serialization::MacroID ID, MacroInfo *MI) override;
66 serialization::MacroID ID, MacroInfo *MI) { in MacroRead()
/external/clang/lib/Parse/
DParser.cpp1872 MacroInfo *MacroInfo, in CodeCompleteMacroArgument() argument
1874 Actions.CodeCompletePreprocessorMacroArgument(getCurScope(), Macro, MacroInfo, in CodeCompleteMacroArgument()

12