Home
last modified time | relevance | path

Searched refs:PP (Results 1 – 25 of 383) sorted by relevance

12345678910>>...16

/llvm-project-15.0.7/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DRTDyldMemoryManager.cpp156 PP(__aeabi_d2f) \
157 PP(__aeabi_d2iz) \
158 PP(__aeabi_d2lz) \
161 PP(__aeabi_dadd) \
168 PP(__aeabi_ddiv) \
169 PP(__aeabi_dmul) \
171 PP(__aeabi_f2d) \
186 PP(__aeabi_i2d) \
187 PP(__aeabi_i2f) \
190 PP(__aeabi_l2d) \
[all …]
/llvm-project-15.0.7/clang/lib/Parse/
H A DParsePragma.cpp271 PP.Lex(Tok); in HandlePragma()
1969 PP.Lex(Tok); in HandlePragma()
1979 PP.Lex(Tok); in HandlePragma()
2053 PP.Lex(Tok); in HandlePragma()
2084 PP.Lex(Tok); in HandlePragma()
2186 PP.Lex(Tok); in ParseAlignPragma()
2198 PP.Lex(Tok); in ParseAlignPragma()
2234 PP.Lex(Tok); in ParseAlignPragma()
2274 PP.Lex(Tok); in HandlePragma()
2316 PP.Lex(Tok); in HandlePragma()
[all …]
/llvm-project-15.0.7/clang/lib/Lex/
H A DPragma.cpp1337 PP.Lex(Tok); in HandlePragma()
1343 PP.Lex(Tok); in HandlePragma()
1464 PP.Lex(Tok); in HandlePragma()
1484 PP.Lex(Tok); in HandlePragma()
1490 PP.Lex(Tok); in HandlePragma()
1528 PP.Lex(Tok); in HandlePragma()
1584 PP.Lex(Tok); in HandlePragma()
1717 PP.getLangOpts(), PP.getTargetInfo(), PP.getDiagnostics(), M)) { in HandlePragma()
1947 PP.Lex(Tok); in HandleMacroAnnotationPragma()
1965 PP.Lex(Tok); in HandleMacroAnnotationPragma()
[all …]
H A DPPExpressions.cpp158 PP.LexNonComment(PeekTok); in EvaluateDefined()
163 PP.LexNonComment(PeekTok); in EvaluateDefined()
186 PP.getSourceManager() in EvaluateDefined()
241 PP.LexNonComment(PeekTok); in EvaluateValue()
301 PP.getSourceManager(), PP.getLangOpts(), in EvaluateValue()
302 PP.getTargetInfo(), PP.getDiagnostics()); in EvaluateValue()
319 PP.Diag(PeekTok, in EvaluateValue()
328 PP.Diag(PeekTok, PP.getLangOpts().CPlusPlus in EvaluateValue()
338 PP.Diag(PeekTok, PP.getLangOpts().C2x in EvaluateValue()
369 PP.LexNonComment(PeekTok); in EvaluateValue()
[all …]
H A DMacroArgs.cpp34 for (MacroArgs **Entry = &PP.MacroArgCache; *Entry; in create()
78 void MacroArgs::destroy(Preprocessor &PP) { in destroy() argument
85 ArgCache = PP.MacroArgCache; in destroy()
86 PP.MacroArgCache = this; in destroy()
188 PP.Lex(Tok); in getPreExpArgument()
196 if (PP.InCachingLexMode()) in getPreExpArgument()
197 PP.ExitCachingLexMode(); in getPreExpArgument()
198 PP.RemoveTopOfLexerStack(); in getPreExpArgument()
238 std::string TokStr = PP.getSpelling(Tok, &Invalid); in StringifyArgument()
244 PP.CodeCompleteNaturalLanguage(); in StringifyArgument()
[all …]
H A DTokenConcatenation.cpp48 const LangOptions &LangOpts = PP.getLangOpts(); in IsIdentifierStringPrefix()
53 SourceManager &SM = PP.getSourceManager(); in IsIdentifierStringPrefix()
89 if (PP.getLangOpts().CPlusPlus11) { in TokenConcatenation()
102 if (PP.getLangOpts().CPlusPlus17) in TokenConcatenation()
106 if (PP.getLangOpts().CPlusPlus20) in TokenConcatenation()
142 PP.getSpelling(Tok, TokPtr); in GetFirstChar()
145 return PP.getSpelling(Tok)[0]; in GetFirstChar()
171 SourceManager &SM = PP.getSourceManager(); in AvoidConcat()
211 FirstChar = GetFirstChar(PP, Tok); in AvoidConcat()
231 if (!PP.getLangOpts().CPlusPlus11) in AvoidConcat()
[all …]
H A DTokenLexer.cpp60 SourceManager &SM = PP.getSourceManager(); in Init()
134 if (ActualArgs) ActualArgs->destroy(PP); in destroy()
155 if (PP.getLangOpts().C99 && !PP.getLangOpts().GNUMode in MaybeRemoveCommaBeforeVaArgs()
252 VAOptExpansionContext VCtx(PP); in ExpandFunctionArguments()
656 (PP.getLangOpts().MSVCCompat && in Lex()
716 return PP.HandleIdentifier(Tok); in Lex()
808 PP.IncrementPasteCounter(true); in pasteTokens()
815 PP.IncrementPasteCounter(false); in pasteTokens()
867 PP.Diag(Loc, PP.getLangOpts().MicrosoftExt ? diag::ext_pp_bad_paste_ms in pasteTokens()
918 PP.LookUpIdentifierInfo(LHSTok); in pasteTokens()
[all …]
/llvm-project-15.0.7/libcxx/benchmarks/
H A Dfilesystem.bench.cpp13 path PP; in BM_PathConstructString() local
15 PP /= Part; in BM_PathConstructString()
31 path PP; in BM_PathConstructCStr() local
33 PP /= Part; in BM_PathConstructCStr()
49 path PP; in BM_PathConstructIter() local
51 PP /= Part; in BM_PathConstructIter()
81 path PP; in BM_PathIterateMultipleTimes() local
83 PP /= Part; in BM_PathIterateMultipleTimes()
101 path PP; in BM_PathIterateOnce() local
103 PP /= Part; in BM_PathIterateOnce()
[all …]
/llvm-project-15.0.7/clang/lib/Frontend/
H A DPrintPreprocessedOutput.cpp80 Preprocessor &PP; member in __anon46d24f460111::PrintPPOutputPPCallbacks
109 : PP(pp), SM(PP.getSourceManager()), ConcatInfo(PP), OS(os), in PrintPPOutputPPCallbacks()
826 PP.Lex(Tok); in PrintPreprocessedTokens()
832 PP.Lex(Tok); in PrintPreprocessedTokens()
840 PP.Lex(Tok); in PrintPreprocessedTokens()
852 PP.Lex(Tok); in PrintPreprocessedTokens()
858 PP.Lex(Tok); in PrintPreprocessedTokens()
873 PP.Lex(Tok); in PrintPreprocessedTokens()
917 PP.Lex(Tok); in PrintPreprocessedTokens()
935 do PP.Lex(Tok); in DoPrintMacros()
[all …]
/llvm-project-15.0.7/clang-tools-extra/modularize/
H A DPreprocessorTracker.cpp316 PP.getSourceManager().getFileID(Loc)); in getSourceLine()
430 if (Args->ArgNeedsPreexpansion(ArgTok, PP)) in getMacroExpandedString()
432 ->getPreExpArgument(ArgNo, PP)[0]; in getMacroExpandedString()
729 : PPTracker(ppTracker), PP(PP), RootHeaderFile(rootHeaderFile) {} in PreprocessorCallbacks()
764 clang::Preprocessor &PP; member in Modularize::__anond6678bf10111::PreprocessorCallbacks
805 PP.addPPCallbacks(std::make_unique<PreprocessorCallbacks>(*this, PP, in handlePreprocessorEntry()
1052 getSourceLine(PP, InstanceLoc) + "\n"; in addMacroExpansionInstance()
1100 getSourceLine(PP, InstanceLoc) + "\n"; in addConditionalExpansionInstance()
1297 PPTracker.handleHeaderEntry(PP, getSourceLocationFile(PP, Loc)); in FileChanged()
1370 IsDefined, PP.getSpelling(MacroNameTok), in Ifdef()
[all …]
/llvm-project-15.0.7/clang/lib/Serialization/
H A DGeneratePCH.cpp24 const Preprocessor &PP, InMemoryModuleCache &ModuleCache, in PCHGenerator() argument
29 : PP(PP), OutputFile(OutputFile), isysroot(isysroot.str()), in PCHGenerator()
43 if (PP.getModuleLoader().HadFatalFailure) in HandleTranslationUnit()
46 bool hasErrors = PP.getDiagnostics().hasErrorOccurred(); in HandleTranslationUnit()
51 if (PP.getLangOpts().isCompilingModule()) { in HandleTranslationUnit()
52 Module = PP.getHeaderSearchInfo().lookupModule( in HandleTranslationUnit()
53 PP.getLangOpts().CurrentModule, SourceLocation(), in HandleTranslationUnit()
64 PP.getDiagnostics().getClient()->clear(); in HandleTranslationUnit()
72 PP.getDiagnostics().hasUncompilableErrorOccurred(), in HandleTranslationUnit()
/llvm-project-15.0.7/clang/unittests/Tooling/
H A DCommentHandlerTest.cpp36 bool HandleComment(Preprocessor &PP, SourceRange Loc) override { in HandleComment() argument
37 assert(&PP == this->PP && "Preprocessor changed!"); in HandleComment()
40 SourceManager &SM = PP.getSourceManager(); in HandleComment()
63 Preprocessor *PP; member in clang::CommentHandlerVisitor
75 V->PP = &CI.getPreprocessor(); in BeginSourceFileAction()
76 V->PP->addCommentHandler(V); in BeginSourceFileAction()
83 V->PP->removeCommentHandler(V); in EndSourceFileAction()
91 Preprocessor *PP; member in clang::CommentVerifier
95 : Current(Comments.begin()), End(Comments.end()), PP(PP) in CommentVerifier()
98 CommentVerifier(CommentVerifier &&C) : Current(C.Current), End(C.End), PP(C.PP) { in CommentVerifier()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DRedundantPreprocessorCheck.cpp36 Preprocessor &PP) in RedundantPreprocessorCallbacks() argument
37 : Check(Check), PP(PP) {} in RedundantPreprocessorCallbacks()
43 PP.getSourceManager(), PP.getLangOpts()); in If()
49 std::string MacroName = PP.getSpelling(MacroNameTok); in Ifdef()
57 std::string MacroName = PP.getSpelling(MacroNameTok); in Ifndef()
78 if (PP.getSourceManager().isInMainFile(Loc)) { in checkMacroRedundancy()
94 Preprocessor &PP; member in clang::tidy::readability::__anon005bea510111::RedundantPreprocessorCallbacks
102 const SourceManager &SM, Preprocessor *PP, Preprocessor *ModuleExpanderPP) { in registerPPCallbacks() argument
103 PP->addPPCallbacks( in registerPPCallbacks()
104 ::std::make_unique<RedundantPreprocessorCallbacks>(*this, *PP)); in registerPPCallbacks()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DReplaceDisallowCopyAndAssignMacroCheck.cpp25 ReplaceDisallowCopyAndAssignMacroCheck &Check, Preprocessor &PP) in ReplaceDisallowCopyAndAssignMacroCallbacks() argument
26 : Check(Check), PP(PP) {} in ReplaceDisallowCopyAndAssignMacroCallbacks()
38 if (Args->ArgNeedsPreexpansion(ClassNameTok, PP)) in MacroExpands()
56 PP.getSourceManager().getExpansionRange(Range), Replacement); in MacroExpands()
64 MacroLoc.getEnd(), PP.getSourceManager(), PP.getLangOpts()); in shouldAppendSemi()
69 Preprocessor &PP; member in clang::tidy::modernize::__anonebbb68480111::ReplaceDisallowCopyAndAssignMacroCallbacks
79 const SourceManager &SM, Preprocessor *PP, Preprocessor *ModuleExpanderPP) { in registerPPCallbacks() argument
80 PP->addPPCallbacks( in registerPPCallbacks()
/llvm-project-15.0.7/clang/unittests/Lex/
H A DPPCallbacksTest.cpp226 PP.Initialize(*Target); in InclusionDirectiveCallback()
231 PP.EnterMainSourceFile(); in InclusionDirectiveCallback()
235 PP.Lex(Tok); in InclusionDirectiveCallback()
256 PP.Initialize(*Target); in DirectiveExprRange()
265 PP.Lex(Tok); in DirectiveExprRange()
286 PP.Initialize(*Target); in PragmaMarkCall()
295 PP.Lex(Tok); in PragmaMarkCall()
320 PP.Initialize(*Target); in PragmaOpenCLExtensionCall()
326 PP.getSelectorTable(), PP.getBuiltinInfo(), PP.TUKind); in PragmaOpenCLExtensionCall()
331 Parser P(PP, S, false); in PragmaOpenCLExtensionCall()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/google/
H A DAvoidUnderscoreInGoogletestNameCheck.cpp38 Preprocessor *PP, AvoidUnderscoreInGoogletestNameCheck *Check) in AvoidUnderscoreInGoogletestNameCallback() argument
39 : PP(PP), Check(Check) {} in AvoidUnderscoreInGoogletestNameCallback()
57 std::string TestCaseName = PP->getSpelling(*TestCaseNameToken); in MacroExpands()
64 std::string TestNameMaybeDisabled = PP->getSpelling(*TestNameToken); in MacroExpands()
75 Preprocessor *PP; member in clang::tidy::google::readability::__anon828e359a0111::AvoidUnderscoreInGoogletestNameCallback
82 const SourceManager &SM, Preprocessor *PP, Preprocessor *ModuleExpanderPP) { in registerPPCallbacks() argument
83 PP->addPPCallbacks( in registerPPCallbacks()
84 std::make_unique<AvoidUnderscoreInGoogletestNameCallback>(PP, this)); in registerPPCallbacks()
/llvm-project-15.0.7/clang/lib/Analysis/
H A DReachableCode.cpp156 SourceManager &SM = PP.getSourceManager(); in isExpandedFromConfigurationMacro()
165 } else if (!PP.getLangOpts().CPlusPlus) { in isExpandedFromConfigurationMacro()
187 Preprocessor &PP, in isConfigurationValue() argument
273 return isConfigurationValue(ED->getInitExpr(), PP); in isConfigurationValue()
300 return isConfigurationValue(Term, PP); in shouldTreatSuccessorsAsReachable()
305 return isConfigurationValue(Cond, PP); in shouldTreatSuccessorsAsReachable()
310 Preprocessor *PP, in scanFromBlock() argument
349 assert(PP); in scanFromBlock()
377 return scanFromBlock(Start, Reachable, &PP, true); in scanMaybeReachableFromBlock()
389 Preprocessor &PP; member in __anon26aee0cf0111::DeadCodeScan
[all …]
H A DMacroExpansionContext.cpp14 static void dumpTokenInto(const clang::Preprocessor &PP, clang::raw_ostream &OS,
20 const Preprocessor &PP; member in clang::detail::MacroExpansionRangeRecorder
26 const Preprocessor &PP, SourceManager &SM, in MacroExpansionRangeRecorder() argument
28 : PP(PP), SM(SM), ExpansionRanges(ExpansionRanges) {} in MacroExpansionRangeRecorder()
49 (void)PP; in MacroExpands()
51 dumpTokenInto(PP, llvm::dbgs(), MacroName); in MacroExpands()
89 PP = &NewPP; in registerForPreprocessor()
94 *PP, *SM, ExpansionRanges)); in registerForPreprocessor()
96 PP->setTokenWatcher([this](const Token &Tok) { onTokenLexed(Tok); }); in registerForPreprocessor()
196 unsigned Len = PP.getSpelling(Tok, TokPtr); in dumpTokenInto()
[all …]
/llvm-project-15.0.7/clang/lib/Frontend/Rewrite/
H A DRewriteMacros.cpp63 SourceManager &SM = PP.getSourceManager(); in LexRawTokensFromMainFile()
81 PP.LookUpIdentifierInfo(RawTok); in LexRawTokensFromMainFile()
90 SourceManager &SM = PP.getSourceManager(); in RewriteMacrosInInput()
93 Rewrite.setSourceMgr(SM, PP.getLangOpts()); in RewriteMacrosInInput()
97 LexRawTokensFromMainFile(PP, RawTokens); in RewriteMacrosInInput()
103 PP.EnterMainSourceFile(); in RewriteMacrosInInput()
105 PP.Lex(PPTok); in RewriteMacrosInInput()
118 PP.Lex(PPTok); in RewriteMacrosInInput()
159 PP.Lex(PPTok); in RewriteMacrosInInput()
197 Expansion += ' ' + PP.getSpelling(PPTok); in RewriteMacrosInInput()
[all …]
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DMustExecute.h420 iterator &begin(const Instruction *PP) { in begin()
421 auto &It = InstructionIteratorMap[PP]; in begin()
423 It.reset(new iterator(*this, PP)); in begin()
428 const_iterator &begin(const Instruction *PP) const { in begin()
429 return *InstructionIteratorMap.find(PP)->second; in begin()
443 return llvm::make_range(begin(PP), end(PP)); in range()
448 return llvm::make_range(begin(PP), end(PP)); in range()
456 bool checkForAllContext(const Instruction *PP, in checkForAllContext()
458 for (auto EIt = begin(PP), EEnd = end(PP); EIt != EEnd; ++EIt) in checkForAllContext()
471 auto EIt = begin(PP), EEnd = end(PP); in findInContextOf()
[all …]
/llvm-project-15.0.7/clang-tools-extra/pseudo/unittests/
H A DDirectiveTreeTest.cpp68 DirectiveTree PP = DirectiveTree::parse(S); in TEST() local
75 EXPECT_THAT((const DirectiveTree::Directive &)PP.Chunks[0], in TEST()
77 EXPECT_THAT((const DirectiveTree::Code &)PP.Chunks[1], in TEST()
81 const DirectiveTree::Conditional &Ifdef(PP.Chunks[2]); in TEST()
115 DirectiveTree PP = DirectiveTree::parse(S); in TEST() local
117 ASSERT_THAT(PP.Chunks, ElementsAre(chunkKind(Chunk::K_Code), in TEST()
121 const DirectiveTree::Directive &Define(PP.Chunks[1]); in TEST()
136 DirectiveTree PP = DirectiveTree::parse(S); in TEST() local
138 ASSERT_THAT(PP.Chunks, ElementsAre(chunkKind(Chunk::K_Code), in TEST()
142 const DirectiveTree::Directive &Endif(PP.Chunks[1]); in TEST()
[all …]
/llvm-project-15.0.7/libcxx/src/filesystem/
H A Doperations.cpp1579 --PP; in __weakly_canonical()
1593 --PP; in __weakly_canonical()
1639 ++PP; in __root_directory()
1699 --PP; in __parent_path()
1702 --PP; in __parent_path()
1779 for (auto PP = PathParser::CreateBegin(__pn_); PP; ++PP) { in lexically_normal() local
1833 for (; PP; ++PP) { in DetermineLexicalElementCount()
1868 while (PP && PPBase && PP.State == PPBase.State && *PP == *PPBase) { in lexically_relative()
1893 for (; PP; ++PP) in lexically_relative()
1998 ++PP; in __increment()
[all …]
/llvm-project-15.0.7/clang/lib/Index/
H A DIndexingAction.cpp104 std::shared_ptr<Preprocessor> PP; member in __anoneb214d450111::IndexASTConsumer
110 std::shared_ptr<Preprocessor> PP, in IndexASTConsumer() argument
114 PP(std::move(PP)), in IndexASTConsumer()
117 assert(this->PP != nullptr); in IndexASTConsumer()
124 IndexCtx->getDataConsumer().setPreprocessor(PP); in Initialize()
232 static void indexPreprocessorMacros(Preprocessor &PP, in indexPreprocessorMacros() argument
234 for (const auto &M : PP.macros()) { in indexPreprocessorMacros()
242 static void indexPreprocessorModuleMacros(Preprocessor &PP, in indexPreprocessorModuleMacros() argument
245 for (const auto &M : PP.macros()) { in indexPreprocessorModuleMacros()
247 for (auto *MM : PP.getLeafModuleMacros(M.first)) { in indexPreprocessorModuleMacros()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DSuspiciousIncludeCheck.cpp22 Preprocessor *PP) in SuspiciousIncludePPCallbacks() argument
23 : Check(Check), PP(PP) {} in SuspiciousIncludePPCallbacks()
34 Preprocessor *PP; member in clang::tidy::bugprone::__anonece6acb80111::SuspiciousIncludePPCallbacks
68 const SourceManager &SM, Preprocessor *PP, Preprocessor *ModuleExpanderPP) { in registerPPCallbacks() argument
69 PP->addPPCallbacks( in registerPPCallbacks()
70 ::std::make_unique<SuspiciousIncludePPCallbacks>(*this, SM, PP)); in registerPPCallbacks()
97 PP->LookupFile(DiagLoc, GuessedFileName, IsAngled, nullptr, nullptr, in InclusionDirective()
/llvm-project-15.0.7/clang/lib/AST/
H A DASTTypeTraits.cpp174 TA->print(PP, OS, /*IncludeType*/ true); in print()
178 TN->print(OS, PP); in print()
180 NNS->print(OS, PP); in print()
183 NNS->print(OS, PP); in print()
187 QT->print(OS, PP); in print()
189 TL->getType().print(OS, PP); in print()
191 D->print(OS, PP); in print()
193 S->printPretty(OS, nullptr, PP); in print()
195 QualType(T, 0).print(OS, PP); in print()
197 A->printPretty(OS, PP); in print()
[all …]

12345678910>>...16