| /llvm-project/clang/lib/Lex/ |
| H A D | Preprocessor.cpp | 1 //===- 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 D | PPCaching.cpp | 9 // 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 D | Pragma.cpp | 10 // 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 D | PPLexerChange.cpp | 9 // 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 D | PPDirectives.cpp | 1 //===--- 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 D | MacroArgs.cpp | 16 #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 D | MacroArgs.h | 24 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 D | TokenLexer.h | 23 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 D | PreprocessorLexer.h | 28 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 D | Pragma.h | 25 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 D | VariadicMacroSupport.h | 22 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 D | TokenConcatenation.h | 19 class Preprocessor; variable 31 const Preprocessor &PP; 58 TokenConcatenation(const Preprocessor &PP);
|
| /llvm-project/clang/unittests/Lex/ |
| H A D | ModuleDeclStateTest.cpp | 30 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 D | Utils.h | 43 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 D | Rewriters.h | 19 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 D | AvoidUnderscoreInGoogletestNameCheck.cpp | 35 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 D | MacroPPCallbacks.h | 22 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 D | BadSignalToKillThreadCheck.cpp | 28 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 D | SuspiciousIncludeCheck.cpp | 22 Preprocessor *PP) in SuspiciousIncludePPCallbacks() 35 Preprocessor *PP; 47 const SourceManager &SM, Preprocessor *PP, Preprocessor *ModuleExpanderPP) { in registerPPCallbacks()
|
| H A D | UnsafeFunctionsCheck.h | 32 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 D | ReplaceDisallowCopyAndAssignMacroCheck.cpp | 24 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 D | proper_version_checks.cpp | 13 #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 D | AvoidUnconditionalPreprocessorIfCheck.cpp | 12 #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 D | RedundantPreprocessorCheck.cpp | 34 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 D | IncludeCleanerCheck.h | 38 void registerPPCallbacks(const SourceManager &SM, Preprocessor *PP, 39 Preprocessor *ModuleExpanderPP) override; 46 const Preprocessor *PP = nullptr;
|