Home
last modified time | relevance | path

Searched refs:Preprocessor (Results 1 – 25 of 151) sorted by relevance

1234567

/freebsd-src/contrib/llvm-project/clang/lib/Lex/
H A DPreprocessor.cpp1 //===- Preprocessor.cpp - C Language Family Preprocessor Implementation ---===//
9 // This file implements the Preprocessor interface.
27 #include "clang/Lex/Preprocessor.h"
83 Preprocessor::Preprocessor(std::shared_ptr<PreprocessorOptions> PPOpts, in Preprocessor()
95 // deferred to Preprocessor::Initialize(). in Preprocessor()
172 Preprocessor::~Preprocessor() { in ~Preprocessor()
192 void Preprocessor in Initialize()
79 Preprocessor::Preprocessor(std::shared_ptr<PreprocessorOptions> PPOpts, Preprocessor() function in Preprocessor
[all...]
H A DPPCaching.cpp25 void Preprocessor::EnableBacktrackAtThisPos() { in EnableBacktrackAtThisPos()
32 void Preprocessor::CommitBacktrackedTokens() { in CommitBacktrackedTokens()
40 void Preprocessor::Backtrack() { in Backtrack()
48 void Preprocessor::CachingLex(Token &Result) { in CachingLex()
82 void Preprocessor::EnterCachingLexMode() { in EnterCachingLexMode()
98 void Preprocessor::EnterCachingLexModeUnchecked() { in EnterCachingLexModeUnchecked()
105 const Token &Preprocessor::PeekAhead(unsigned N) { in PeekAhead()
116 void Preprocessor::AnnotatePreviousCachedTokens(const Token &Tok) { in AnnotatePreviousCachedTokens()
139 bool Preprocessor::IsPreviousCachedToken(const Token &Tok) const { in IsPreviousCachedToken()
157 void Preprocessor::ReplacePreviousCachedToken(ArrayRef<Token> NewToks) { in ReplacePreviousCachedToken()
H A DPragma.cpp10 // pragma related methods of the Preprocessor class.
32 #include "clang/Lex/Preprocessor.h"
67 void EmptyPragmaHandler::HandlePragma(Preprocessor &PP, in HandlePragma()
107 void PragmaNamespace::HandlePragma(Preprocessor &PP, in HandlePragma()
128 // Preprocessor Pragma Directive Handling.
136 Preprocessor &Self;
167 void Preprocessor::HandlePragmaDirective(PragmaIntroducer Introducer) { in HandlePragmaDirective()
189 void Preprocessor::Handle_Pragma(Token &Tok) { in Handle_Pragma()
358 void Preprocessor::HandleMicrosoft__pragma(Token &Tok) { in HandleMicrosoft__pragma()
417 void Preprocessor
[all...]
H A DPPLexerChange.cpp9 // This file implements pieces of the Preprocessor interface that manage the
19 #include "clang/Lex/Preprocessor.h"
35 bool Preprocessor::isInPrimaryFile() const { in isInPrimaryFile()
50 PreprocessorLexer *Preprocessor::getCurrentFileLexer() const { in getCurrentFileLexer()
69 bool Preprocessor::EnterSourceFile(FileID FID, ConstSearchDirIterator CurDir, in EnterSourceFile()
113 void Preprocessor::EnterSourceFileWithLexer(Lexer *TheLexer, in EnterSourceFileWithLexer()
151 void Preprocessor::EnterMacro(Token &Tok, SourceLocation ILEnd, in EnterMacro()
180 void Preprocessor::EnterTokenStream(const Token *Toks, unsigned NumToks, in EnterTokenStream()
247 void Preprocessor::PropagateLineStartLeadingSpaceInfo(Token &Result) { in PropagateLineStartLeadingSpaceInfo()
266 const char *Preprocessor
[all...]
H A DPPDirectives.cpp1 //===--- PPDirectives.cpp - Directive Handling for Preprocessor -----------===//
10 /// Implements # directive processing for the Preprocessor.
34 #include "clang/Lex/Preprocessor.h"
61 // Utility Methods for Preprocessor Directive Handling.
64 MacroInfo *Preprocessor::AllocateMacroInfo(SourceLocation L) { in AllocateMacroInfo()
69 DefMacroDirective *Preprocessor::AllocateDefMacroDirective(MacroInfo *MI, in AllocateDefMacroDirective()
75 Preprocessor::AllocateUndefMacroDirective(SourceLocation UndefLoc) { in AllocateUndefMacroDirective()
80 Preprocessor::AllocateVisibilityMacroDirective(SourceLocation Loc, in AllocateVisibilityMacroDirective()
87 SourceRange Preprocessor::DiscardUntilEndOfDirective(Token &Tmp) { in DiscardUntilEndOfDirective()
180 static MacroDiag shouldWarnOnMacroDef(Preprocessor in shouldWarnOnMacroDef()
[all...]
H A DMacroArgs.cpp26 bool VarargsElided, Preprocessor &PP) { in create()
78 void MacroArgs::destroy(Preprocessor &PP) { in destroy()
137 Preprocessor &PP) { in invokedWithVariadicArgument()
147 Preprocessor &PP) const { in ArgNeedsPreexpansion()
162 Preprocessor &PP) { in getPreExpArgument()
209 Preprocessor &PP, bool Charify, in StringifyArgument()
H A DPPMacroExpansion.cpp32 #include "clang/Lex/Preprocessor.h"
63 Preprocessor::getLocalMacroDirectiveHistory(const IdentifierInfo *II) const { in getLocalMacroDirectiveHistory()
71 void Preprocessor::appendMacroDirective(IdentifierInfo *II, MacroDirective *MD){ in appendMacroDirective()
96 void Preprocessor::setLoadedMacroDirective(IdentifierInfo *II, in setLoadedMacroDirective()
103 // However, built-in macros are already registered in the Preprocessor in setLoadedMacroDirective()
132 ModuleMacro *Preprocessor::addModuleMacro(Module *Mod, IdentifierInfo *II, in addModuleMacro()
171 ModuleMacro *Preprocessor::getModuleMacro(Module *Mod, in getModuleMacro()
180 void Preprocessor::updateModuleMacroInfo(const IdentifierInfo *II, in updateModuleMacroInfo()
258 void Preprocessor::dumpMacroInfo(const IdentifierInfo *II) { in dumpMacroInfo()
326 static IdentifierInfo *RegisterBuiltinMacro(Preprocessor
[all...]
/freebsd-src/contrib/llvm-project/clang/include/clang/Lex/
H A DMacroArgs.h24 class Preprocessor; variable
68 bool VarargsElided, Preprocessor &PP);
72 void destroy(Preprocessor &PP);
76 bool ArgNeedsPreexpansion(const Token *ArgTok, Preprocessor &PP) const;
91 getPreExpArgument(unsigned Arg, Preprocessor &PP);
117 bool invokedWithVariadicArgument(const MacroInfo *const MI, Preprocessor &PP);
125 Preprocessor &PP, bool Charify,
H A DTokenLexer.h23 class Preprocessor; variable
31 friend class Preprocessor; variable
41 Preprocessor &PP;
109 MacroArgs *ActualArgs, Preprocessor &pp) in TokenLexer()
118 bool ownsTokens, bool isReinject, Preprocessor &pp) in TokenLexer()
238 Preprocessor &PP);
H A DPreprocessorLexer.h28 class Preprocessor; variable
34 friend class Preprocessor;
37 Preprocessor *PP = nullptr;
79 PreprocessorLexer(Preprocessor *pp, FileID fid);
145 Preprocessor *getPP() const { return PP; } in getPP()
H A DPragma.h25 class Preprocessor; variable
74 virtual void HandlePragma(Preprocessor &PP, PragmaIntroducer Introducer,
88 void HandlePragma(Preprocessor &PP, PragmaIntroducer Introducer,
120 void HandlePragma(Preprocessor &PP, PragmaIntroducer Introducer,
H A DVariadicMacroSupport.h22 class Preprocessor; variable
31 const Preprocessor &PP;
36 VariadicMacroScopeGuard(const Preprocessor &P) in VariadicMacroScopeGuard()
74 VAOptDefinitionContext(Preprocessor &PP) in VAOptDefinitionContext()
156 VAOptExpansionContext(Preprocessor &PP) in VAOptExpansionContext()
H A DTokenConcatenation.h19 class Preprocessor; variable
31 const Preprocessor &PP;
58 TokenConcatenation(const Preprocessor &PP);
/freebsd-src/contrib/llvm-project/clang/include/clang/Frontend/
H A DUtils.h43 class Preprocessor; variable
50 void InitializePreprocessor(Preprocessor &PP, const PreprocessorOptions &PPOpts,
56 void DoPrintPreprocessedInput(Preprocessor &PP, raw_ostream *OS,
67 virtual void attachToPreprocessor(Preprocessor &PP);
108 void attachToPreprocessor(Preprocessor &PP) override;
158 void attachToPreprocessor(Preprocessor &PP) override;
167 void AttachDependencyGraphGen(Preprocessor &PP, StringRef OutputFile,
182 void AttachHeaderIncludeGen(Preprocessor &PP,
H A DCompilerInstance.h55 class Preprocessor; variable
102 std::shared_ptr<Preprocessor> PP;
489 /// @name Preprocessor in hasASTContext()
495 Preprocessor &getPreprocessor() const {
500 std::shared_ptr<Preprocessor> getPreprocessorPtr() { return PP; }
503 llvm::BuryPointer(new std::shared_ptr<Preprocessor>(PP)); in resetAndLeakASTContext()
507 void setPreprocessor(std::shared_ptr<Preprocessor> Value);
744 bool AllowPCHWithCompilerErrors, Preprocessor &PP,
760 Preprocessor &PP, StringRef Filename, unsigned Line, unsigned Column,
/freebsd-src/contrib/llvm-project/clang/include/clang/Rewrite/Frontend/
H A DRewriters.h19 class Preprocessor; variable
23 void RewriteMacrosInInput(Preprocessor &PP, raw_ostream *OS);
26 void DoRewriteTest(Preprocessor &PP, raw_ostream *OS);
29 void RewriteIncludesInInput(Preprocessor &PP, raw_ostream *OS,
/freebsd-src/contrib/llvm-project/clang/lib/CodeGen/
H A DMacroPPCallbacks.h22 class Preprocessor; variable
30 /// Preprocessor.
31 Preprocessor &PP;
69 /// \param PP Preprocessor.
73 const MacroInfo &MI, Preprocessor &PP,
90 MacroPPCallbacks(CodeGenerator *Gen, Preprocessor &PP);
/freebsd-src/contrib/llvm-project/clang/include/clang/Rewrite/Core/
H A DHTMLRewrite.h24 class Preprocessor; variable
79 void SyntaxHighlight(Rewriter &R, FileID FID, const Preprocessor &PP,
86 void HighlightMacros(Rewriter &R, FileID FID, const Preprocessor &PP,
/freebsd-src/contrib/llvm-project/clang/include/clang/Index/
H A DIndexingAction.h39 std::shared_ptr<Preprocessor> PP);
43 const IndexingOptions &Opts, std::shared_ptr<Preprocessor> PP,
58 void indexTopLevelDecls(ASTContext &Ctx, Preprocessor &PP,
/freebsd-src/contrib/llvm-project/clang/lib/Index/
H A DIndexingAction.cpp16 #include "clang/Lex/Preprocessor.h"
104 std::shared_ptr<Preprocessor> PP;
110 std::shared_ptr<Preprocessor> PP, in IndexASTConsumer()
173 const IndexingOptions &Opts, std::shared_ptr<Preprocessor> PP, in createIndexingASTConsumer()
181 const IndexingOptions &Opts, std::shared_ptr<Preprocessor> PP) { in createIndexingASTConsumer()
232 static void indexPreprocessorMacros(Preprocessor &PP, in indexPreprocessorMacros()
242 static void indexPreprocessorModuleMacros(Preprocessor &PP, in indexPreprocessorModuleMacros()
273 void index::indexTopLevelDecls(ASTContext &Ctx, Preprocessor &PP, in indexTopLevelDecls()
/freebsd-src/contrib/llvm-project/clang/lib/Parse/
H A DParsePragma.cpp16 #include "clang/Lex/Preprocessor.h"
36 void HandlePragma(Preprocessor &PP, PragmaIntroducer Introducer,
42 void HandlePragma(Preprocessor &PP, PragmaIntroducer Introducer,
48 void HandlePragma(Preprocessor &PP, PragmaIntroducer Introducer,
54 void HandlePragma(Preprocessor &PP, PragmaIntroducer Introducer,
61 void HandlePragma(Preprocessor &PP, PragmaIntroducer Introducer,
70 void HandlePragma(Preprocessor &PP, PragmaIntroducer Introducer,
76 void HandlePragma(Preprocessor &PP, PragmaIntroducer Introducer,
82 void HandlePragma(Preprocessor &PP, PragmaIntroducer Introducer,
88 void HandlePragma(Preprocessor
[all...]
/freebsd-src/contrib/llvm-project/clang/lib/Frontend/Rewrite/
H A DHTMLPrint.cpp34 Preprocessor &PP;
38 HTMLPrinter(std::unique_ptr<raw_ostream> OS, Preprocessor &pp, in HTMLPrinter()
49 clang::CreateHTMLPrinter(std::unique_ptr<raw_ostream> OS, Preprocessor &PP, in CreateHTMLPrinter()
/freebsd-src/contrib/llvm-project/clang/lib/Analysis/
H A DMacroExpansionContext.cpp15 static void dumpTokenInto(const clang::Preprocessor &PP, llvm::raw_ostream &OS,
21 const Preprocessor &PP;
27 const Preprocessor &PP, SourceManager &SM, in MacroExpansionRangeRecorder()
89 void MacroExpansionContext::registerForPreprocessor(Preprocessor &NewPP) { in registerForPreprocessor()
93 // Make sure that the Preprocessor does not outlive the MacroExpansionContext. in registerForPreprocessor()
177 static void dumpTokenInto(const Preprocessor &PP, raw_ostream &OS, Token Tok) { in dumpTokenInto()
/freebsd-src/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DAnalysisManager.h36 Preprocessor &PP;
49 AnalysisManager(ASTContext &ctx, Preprocessor &PP,
66 Preprocessor &getPreprocessor() override { return PP; } in getPreprocessor()
/freebsd-src/contrib/llvm-project/clang/include/clang/Sema/
H A DRISCVIntrinsicManager.h22 class Preprocessor; variable
36 Preprocessor &PP) = 0;

1234567