Home
last modified time | relevance | path

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

12345678910>>...14

/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"
80 Preprocessor::Preprocessor(std::shared_ptr<PreprocessorOptions> PPOpts,
92 // deferred to Preprocessor::Initialize(). in Preprocessor()
169 Preprocessor::~Preprocessor() { in Preprocessor()
189 void Preprocessor in ~Preprocessor()
83 Preprocessor::Preprocessor(std::shared_ptr<PreprocessorOptions> PPOpts, Preprocessor() function in Preprocessor
[all...]
H A DPPCaching.cpp9 // This file implements pieces of the Preprocessor interface that manage the
14 #include "clang/Lex/Preprocessor.h"
17 std::pair<Preprocessor::CachedTokensTy::size_type, bool>
18 Preprocessor::LastBacktrackPos() {
27 // until CommitBacktrackedTokens() or Backtrack() is called, the Preprocessor in EnableBacktrackAtThisPos()
29 // make the Preprocessor re-lex the same tokens. in EnableBacktrackAtThisPos()
34 void Preprocessor::EnableBacktrackAtThisPos(bool Unannotated) { in CommitBacktrackedTokens()
42 Preprocessor::CachedTokensTy Preprocessor::PopUnannotatedBacktrackTokens() { in Backtrack()
56 void Preprocessor in CachingLex()
[all...]
H A DPragma.cpp10 // pragma related methods of the Preprocessor class.
31 #include "clang/Lex/Preprocessor.h"
63 void EmptyPragmaHandler::HandlePragma(Preprocessor &PP,
103 void PragmaNamespace::HandlePragma(Preprocessor &PP, in RemovePragmaHandler()
124 // Preprocessor Pragma Directive Handling. in HandlePragma()
132 Preprocessor &Self;
163 void Preprocessor::HandlePragmaDirective(PragmaIntroducer Introducer) {
185 void Preprocessor::Handle_Pragma(Token &Tok) {
354 void Preprocessor::HandleMicrosoft__pragma(Token &Tok) { in prepare_PragmaString()
413 void Preprocessor in HandleMicrosoft__pragma()
[all...]
H A DPPLexerChange.cpp9 // This file implements pieces of the Preprocessor interface that manage the
19 #include "clang/Lex/Preprocessor.h"
34 bool Preprocessor::isInPrimaryFile() const {
49 PreprocessorLexer *Preprocessor::getCurrentFileLexer() const {
68 bool Preprocessor::EnterSourceFile(FileID FID, ConstSearchDirIterator CurDir,
112 void Preprocessor::EnterSourceFileWithLexer(Lexer *TheLexer,
150 void Preprocessor::EnterMacro(Token &Tok, SourceLocation ILEnd,
179 void Preprocessor::EnterTokenStream(const Token *Toks, unsigned NumToks,
246 void Preprocessor::PropagateLineStartLeadingSpaceInfo(Token &Result) {
265 const char *Preprocessor
[all...]
H A DPPDirectives.cpp1 //===--- PPDirectives.cpp - Directive Handling for Preprocessor -----------===//
10 /// Implements # directive processing for the Preprocessor.
35 #include "clang/Lex/Preprocessor.h"
59 // Utility Methods for Preprocessor Directive Handling.
62 MacroInfo *Preprocessor::AllocateMacroInfo(SourceLocation L) {
67 DefMacroDirective *Preprocessor::AllocateDefMacroDirective(MacroInfo *MI, in AllocateMacroInfo()
73 Preprocessor::AllocateUndefMacroDirective(SourceLocation UndefLoc) {
78 Preprocessor::AllocateVisibilityMacroDirective(SourceLocation Loc,
85 SourceRange Preprocessor::DiscardUntilEndOfDirective(Token &Tmp) {
179 static bool isReservedCXXAttributeName(Preprocessor in isLanguageDefinedBuiltin()
[all...]
H A DMacroArgs.cpp16 #include "clang/Lex/Preprocessor.h"
25 bool VarargsElided, Preprocessor &PP) { in create()
77 void MacroArgs::destroy(Preprocessor &PP) {
88 /// deallocate - This should only be called by the Preprocessor when managing
136 Preprocessor &PP) { in invokedWithVariadicArgument()
146 Preprocessor &PP) const { in ArgNeedsPreexpansion()
161 Preprocessor &PP) { in getPreExpArgument()
208 Preprocessor &PP, bool Charify, in StringifyArgument()
/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);
/llvm-project/clang/unittests/Lex/
H A DModuleDeclStateTest.cpp30 Preprocessor &PP;
35 CheckNamedModuleImportingCB(Preprocessor &PP, in CheckNamedModuleImportingCB()
64 std::unique_ptr<Preprocessor>
81 return std::make_unique<Preprocessor>( in getPreprocessor()
88 void preprocess(Preprocessor &PP, std::unique_ptr<PPCallbacks> C) { in preprocess()
112 std::unique_ptr<Preprocessor> PP = getPreprocessor(source, Language::CXX); in TEST_F()
131 std::unique_ptr<Preprocessor> PP = getPreprocessor(source, Language::CXX); in TEST_F()
150 std::unique_ptr<Preprocessor> PP = getPreprocessor(source, Language::CXX); in TEST_F()
169 std::unique_ptr<Preprocessor> PP = getPreprocessor(source, Language::CXX); in TEST_F()
188 std::unique_ptr<Preprocessor> PP = getPreprocessor(source, Language::CXX); in TEST_F()
[all …]
/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,
/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,
/llvm-project/clang-tools-extra/clang-tidy/google/
H A DAvoidUnderscoreInGoogletestNameCheck.cpp35 Preprocessor *PP, AvoidUnderscoreInGoogletestNameCheck *Check) in AvoidUnderscoreInGoogletestNameCallback()
75 Preprocessor *PP;
82 const SourceManager &SM, Preprocessor *PP, Preprocessor *ModuleExpanderPP) { in registerPPCallbacks()
/llvm-project/clang/lib/CodeGen/
H A DMacroPPCallbacks.h22 class Preprocessor; variable
31 Preprocessor &PP;
73 const MacroInfo &MI, Preprocessor &PP,
90 MacroPPCallbacks(CodeGenerator *Gen, Preprocessor &PP);
/llvm-project/clang-tools-extra/clang-tidy/bugprone/
H A DBadSignalToKillThreadCheck.cpp28 static Preprocessor *PP;
36 [](Preprocessor::macro_iterator It) -> std::optional<unsigned> { in check()
67 const SourceManager &SM, Preprocessor *Pp, Preprocessor *ModuleExpanderPP) { in registerPPCallbacks()
H A DSuspiciousIncludeCheck.cpp22 Preprocessor *PP) in SuspiciousIncludePPCallbacks()
35 Preprocessor *PP;
47 const SourceManager &SM, Preprocessor *PP, Preprocessor *ModuleExpanderPP) { in registerPPCallbacks()
H A DUnsafeFunctionsCheck.h32 void registerPPCallbacks(const SourceManager &SM, Preprocessor *PP,
33 Preprocessor *ModuleExpanderPP) override;
52 Preprocessor *PP = nullptr;
/llvm-project/clang-tools-extra/clang-tidy/modernize/
H A DReplaceDisallowCopyAndAssignMacroCheck.cpp24 ReplaceDisallowCopyAndAssignMacroCheck &Check, Preprocessor &PP) in ReplaceDisallowCopyAndAssignMacroCallbacks()
68 Preprocessor &PP;
78 const SourceManager &SM, Preprocessor *PP, Preprocessor *ModuleExpanderPP) { in registerPPCallbacks()
/llvm-project/libcxx/test/tools/clang_tidy_checks/
H A Dproper_version_checks.cpp13 #include <clang/Lex/Preprocessor.h>
19 proper_version_checks_callbacks(clang::Preprocessor& preprocessor, clang::tidy::ClangTidyCheck& check) in proper_version_checks_callbacks()
62 clang::Preprocessor& preprocessor_;
72 clang::Preprocessor* preprocessor, in registerPPCallbacks()
73 clang::Preprocessor* module_expander) {
/llvm-project/clang-tools-extra/clang-tidy/readability/
H A DAvoidUnconditionalPreprocessorIfCheck.cpp12 #include "clang/Lex/Preprocessor.h"
22 Preprocessor &PP) in AvoidUnconditionalPreprocessorIfPPCallbacks()
93 Preprocessor &PP;
99 const SourceManager &SM, Preprocessor *PP, Preprocessor *ModuleExpanderPP) { in registerPPCallbacks()
H A DRedundantPreprocessorCheck.cpp34 Preprocessor &PP) in RedundantPreprocessorCallbacks()
92 Preprocessor &PP;
100 const SourceManager &SM, Preprocessor *PP, Preprocessor *ModuleExpanderPP) { in registerPPCallbacks()
/llvm-project/clang-tools-extra/clang-tidy/misc/
H A DIncludeCleanerCheck.h38 void registerPPCallbacks(const SourceManager &SM, Preprocessor *PP,
39 Preprocessor *ModuleExpanderPP) override;
46 const Preprocessor *PP = nullptr;

12345678910>>...14