Home
last modified time | relevance | path

Searched refs:MacroDirective (Results 1 – 22 of 22) sorted by relevance

/openbsd-src/gnu/llvm/clang/include/clang/Lex/
H A DMacroInfo.h313 class MacroDirective {
323 MacroDirective *Previous = nullptr;
339 MacroDirective(Kind K, SourceLocation Loc) in MacroDirective() function
348 void setPrevious(MacroDirective *Prev) { Previous = Prev; } in setPrevious()
351 const MacroDirective *getPrevious() const { return Previous; } in getPrevious()
354 MacroDirective *getPrevious() { return Previous; } in getPrevious()
404 return const_cast<MacroDirective *>(this)->getDefinition(); in getDefinition()
425 static bool classof(const MacroDirective *) { return true; } in classof() argument
429 class DefMacroDirective : public MacroDirective {
434 : MacroDirective(MD_Define, Loc), Info(MI) { in DefMacroDirective()
[all …]
H A DPreprocessor.h806 MacroDirective *MD;
821 ModuleMacroInfo(MacroDirective *MD) : MD(MD) {} in ModuleMacroInfo()
826 mutable llvm::PointerUnion<MacroDirective *, ModuleMacroInfo *> State;
843 ModuleMacroInfo(State.get<MacroDirective *>()); in getModuleInfo()
855 MacroState(MacroDirective *MD) : State(MD) {} in MacroState()
858 O.State = (MacroDirective *)nullptr; in MacroState()
863 O.State = (MacroDirective *)nullptr;
873 MacroDirective *getLatest() const { in getLatest()
876 return State.get<MacroDirective*>(); in getLatest()
879 void setLatest(MacroDirective *MD) { in setLatest()
[all …]
H A DPPCallbacks.h28 class MacroDirective; variable
313 const MacroDirective *MD) { in MacroDefined()
324 const MacroDirective *Undef) { in MacroUndefined()
617 const MacroDirective *MD) override { in MacroDefined()
624 const MacroDirective *Undef) override { in MacroUndefined()
H A DPreprocessingRecord.h525 void MacroDefined(const Token &Id, const MacroDirective *MD) override;
527 const MacroDirective *Undef) override;
/openbsd-src/gnu/llvm/clang/lib/Lex/
H A DMacroInfo.cpp198 MacroDirective::DefInfo MacroDirective::getDefinition() { in getDefinition()
199 MacroDirective *MD = this; in getDefinition()
219 const MacroDirective::DefInfo
220 MacroDirective::findDirectiveAtLoc(SourceLocation L, in findDirectiveAtLoc()
233 LLVM_DUMP_METHOD void MacroDirective::dump() const { in dump()
H A DPreprocessingRecord.cpp462 const MacroDirective *MD) { in MacroDefined()
473 const MacroDirective *Undef) { in MacroUndefined()
H A DPPMacroExpansion.cpp62 MacroDirective *
71 void Preprocessor::appendMacroDirective(IdentifierInfo *II, MacroDirective *MD){ in appendMacroDirective()
97 MacroDirective *ED, in setLoadedMacroDirective()
98 MacroDirective *MD) { in setLoadedMacroDirective()
H A DPPLexerChange.cpp803 MacroDirective *OldMD = nullptr; in LeaveSubmodule()
H A DPreprocessor.cpp359 const MacroDirective::DefInfo in getLastMacroWithSpelling()
H A DPPDirectives.cpp1687 MacroDirective *MD = getLocalMacroDirective(II); in HandleMacroPublicDirective()
1714 MacroDirective *MD = getLocalMacroDirective(II); in HandleMacroPrivateDirective()
/openbsd-src/gnu/llvm/clang/lib/Index/
H A DIndexingAction.cpp40 const MacroDirective *MD) override { in MacroDefined()
47 const MacroDirective *Undef) override { in MacroUndefined()
212 MacroDirective::Kind DirectiveKind, in indexPreprocessorMacro()
223 if (DirectiveKind == MacroDirective::MD_Visibility) in indexPreprocessorMacro()
226 auto Role = DirectiveKind == MacroDirective::MD_Define in indexPreprocessorMacro()
251 indexPreprocessorMacro(M.first, MI, MacroDirective::MD_Define, in indexPreprocessorModuleMacros()
/openbsd-src/gnu/llvm/clang/lib/CodeGen/
H A DMacroPPCallbacks.h110 const MacroDirective *MD) override;
116 const MacroDirective *Undef) override;
H A DMacroPPCallbacks.cpp179 const MacroDirective *MD) { in MacroDefined()
193 const MacroDirective *Undef) { in MacroUndefined()
/openbsd-src/gnu/llvm/clang/lib/ExtractAPI/
H A DExtractAPIConsumer.cpp245 const MacroDirective *MD) override { in MacroDefined()
263 const MacroDirective *Undef) override { in MacroUndefined()
303 const MacroDirective *MD;
305 PendingMacro(const Token &MacroNameToken, const MacroDirective *MD) in PendingMacro()
H A DDeclarationFragments.cpp501 const MacroDirective *MD) { in getFragmentsForMacro()
/openbsd-src/gnu/llvm/clang/lib/Frontend/
H A DPrintPreprocessedOutput.cpp219 const MacroDirective *MD) override;
224 const MacroDirective *Undef) override;
464 const MacroDirective *MD) { in MacroDefined()
487 const MacroDirective *Undef) { in MacroUndefined()
H A DASTUnit.cpp913 const MacroDirective *MD) override { in MacroDefined()
/openbsd-src/gnu/llvm/clang/include/clang/ExtractAPI/
H A DDeclarationFragments.h242 const MacroDirective *MD);
/openbsd-src/gnu/llvm/clang/tools/libclang/
H A DIndexing.cpp275 void MacroDefined(const Token &Id, const MacroDirective *MD) override {} in MacroDefined()
281 const MacroDirective *UD) override {} in MacroUndefined()
H A DCIndex.cpp9337 MacroDirective *MD = PP.getLocalMacroDirectiveHistory(&II); in getMacroInfo()
9339 for (MacroDirective::DefInfo Def = MD->getDefinition(); Def; in getMacroInfo()
9394 MacroDirective *InnerMD = PP.getLocalMacroDirectiveHistory(&II); in checkForMacroInMacroDefinition()
/openbsd-src/gnu/llvm/clang/lib/Serialization/
H A DASTReader.cpp2213 MacroDirective *Latest = nullptr, *Earliest = nullptr; in resolvePendingMacro()
2216 MacroDirective *MD = nullptr; in resolvePendingMacro()
2218 MacroDirective::Kind K = (MacroDirective::Kind)Record[Idx++]; in resolvePendingMacro()
2220 case MacroDirective::MD_Define: { in resolvePendingMacro()
2225 case MacroDirective::MD_Undefine: in resolvePendingMacro()
2228 case MacroDirective::MD_Visibility: in resolvePendingMacro()
H A DASTWriter.cpp2246 static bool shouldIgnoreMacro(MacroDirective *MD, bool IsModule, in shouldIgnoreMacro()
2367 MacroDirective *MD = PP.getLocalMacroDirectiveHistory(Name); in WritePreprocessor()
2385 MD->getKind() == MacroDirective::MD_Undefine) in WritePreprocessor()