| /freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/ |
| H A D | RTDyldMemoryManager.cpp | 153 #define ARM_MATH_IMPORTS(PP) \ argument 154 PP(__aeabi_d2f) \ 155 PP(__aeabi_d2iz) \ 156 PP(__aeabi_d2lz) \ 157 PP(__aeabi_d2uiz) \ 158 PP(__aeabi_d2ulz) \ 159 PP(__aeabi_dadd) \ 160 PP(__aeabi_dcmpeq) \ 161 PP(__aeabi_dcmpge) \ 162 PP(__aeabi_dcmpgt) \ [all …]
|
| /freebsd/contrib/llvm-project/libcxx/src/filesystem/ |
| H A D | path.cpp | 50 auto PP = PathParser::CreateBegin(__pn_); in __root_name() local 51 if (PP.State_ == PathParser::PS_InRootName) in __root_name() 52 return *PP; in __root_name() 57 auto PP = PathParser::CreateBegin(__pn_); in __root_directory() local 58 if (PP.State_ == PathParser::PS_InRootName) in __root_directory() 59 ++PP; in __root_directory() 60 if (PP.State_ == PathParser::PS_InRootDir) in __root_directory() 61 return *PP; in __root_directory() 66 auto PP = PathParser::CreateBegin(__pn_); in __root_path_raw() local 67 if (PP.State_ == PathParser::PS_InRootName) { in __root_path_raw() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Parse/ |
| H A D | ParsePragma.cpp | 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 &PP, PragmaIntroducer Introducer, 94 void HandlePragma(Preprocessor &PP, PragmaIntroducer Introducer, [all …]
|
| H A D | Parser.cpp | 41 bool HandleComment(Preprocessor &PP, SourceRange Comment) override { in HandleComment() argument 51 Ident__except = PP.getIdentifierInfo("__except"); in getSEHExceptKeyword() 57 : PP(pp), in Parser() 59 Actions(actions), Diags(PP.getDiagnostics()), StackHandler(Diags), in Parser() 75 PP.addCommentHandler(CommentSemaHandler.get()); in Parser() 77 PP.setCodeCompletionHandler(*this); in Parser() 105 SourceLocation EndLoc = PP.getLocForEndOfToken(ParenRange.getEnd()); in SuggestParentheses() 153 SourceLocation EndLoc = PP.getLocForEndOfToken(PrevTokLocation); in ExpectAndConsume() 184 << PP.getSpelling(Tok) in ExpectAndConsumeSemi() 256 PP.getSourceManager().getFileID(FirstTokLoc) != in checkCompoundToken() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Lex/ |
| H A D | Pragma.cpp | 63 void EmptyPragmaHandler::HandlePragma(Preprocessor &PP, in HandlePragma() argument 103 void PragmaNamespace::HandlePragma(Preprocessor &PP, in HandlePragma() argument 107 PP.LexUnexpandedToken(Tok); in HandlePragma() 115 PP.Diag(Tok, diag::warn_pragma_ignored); in HandlePragma() 120 Handler->HandlePragma(PP, Introducer, Tok); in HandlePragma() 766 static bool LexModuleNameComponent(Preprocessor &PP, Token &Tok, in LexModuleNameComponent() argument 769 PP.LexUnexpandedToken(Tok); in LexModuleNameComponent() 771 StringLiteralParser Literal(Tok, PP); in LexModuleNameComponent() 775 Tok.getLocation(), PP.getIdentifierInfo(Literal.GetString())); in LexModuleNameComponent() 780 PP.Diag(Tok.getLocation(), diag::err_pp_expected_module_name) << First; in LexModuleNameComponent() [all …]
|
| H A D | PPExpressions.cpp | 78 Preprocessor &PP); 103 bool ValueLive, Preprocessor &PP) { in EvaluateDefined() argument 108 PP.LexUnexpandedNonComment(PeekTok); in EvaluateDefined() 115 PP.LexUnexpandedNonComment(PeekTok); in EvaluateDefined() 119 if (PP.getCodeCompletionHandler()) in EvaluateDefined() 120 PP.getCodeCompletionHandler()->CodeCompleteMacroName(false); in EvaluateDefined() 121 PP.setCodeCompletionReached(); in EvaluateDefined() 122 PP.LexUnexpandedNonComment(PeekTok); in EvaluateDefined() 126 if (PP.CheckMacroName(PeekTok, MU_Other)) in EvaluateDefined() 131 MacroDefinition Macro = PP.getMacroDefinition(II); in EvaluateDefined() [all …]
|
| H A D | MacroArgs.cpp | 25 bool VarargsElided, Preprocessor &PP) { in create() argument 33 for (MacroArgs **Entry = &PP.MacroArgCache; *Entry; in create() 77 void MacroArgs::destroy(Preprocessor &PP) { in destroy() argument 84 ArgCache = PP.MacroArgCache; in destroy() 85 PP.MacroArgCache = this; in destroy() 136 Preprocessor &PP) { in invokedWithVariadicArgument() argument 140 return getPreExpArgument(VariadicArgIndex, PP).front().isNot(tok::eof); in invokedWithVariadicArgument() 146 Preprocessor &PP) const { in ArgNeedsPreexpansion() 161 Preprocessor &PP) { in getPreExpArgument() argument 171 SaveAndRestore PreExpandingMacroArgs(PP.InMacroArgPreExpansion, true); in getPreExpArgument() [all …]
|
| H A D | TokenConcatenation.cpp | 48 const LangOptions &LangOpts = PP.getLangOpts(); in IsIdentifierStringPrefix() 53 SourceManager &SM = PP.getSourceManager(); in IsIdentifierStringPrefix() 62 unsigned length = PP.getSpelling(Tok, TokPtr); in IsIdentifierStringPrefix() 66 return IsStringPrefix(StringRef(PP.getSpelling(Tok)), LangOpts.CPlusPlus11); in IsIdentifierStringPrefix() 69 TokenConcatenation::TokenConcatenation(const Preprocessor &pp) : PP(pp) { in TokenConcatenation() 89 if (PP.getLangOpts().CPlusPlus11) { in TokenConcatenation() 102 if (PP.getLangOpts().CPlusPlus17) in TokenConcatenation() 106 if (PP.getLangOpts().CPlusPlus20) in TokenConcatenation() 128 static char GetFirstChar(const Preprocessor &PP, const Token &Tok) { in GetFirstChar() argument 136 SourceManager &SM = PP.getSourceManager(); in GetFirstChar() [all …]
|
| H A D | TokenLexer.cpp | 61 SourceManager &SM = PP.getSourceManager(); in Init() 135 if (ActualArgs) ActualArgs->destroy(PP); in destroy() 140 unsigned MacroArgNo, Preprocessor &PP) { in MaybeRemoveCommaBeforeVaArgs() argument 148 if (!HasPasteOperator && !PP.getLangOpts().MSVCCompat) in MaybeRemoveCommaBeforeVaArgs() 156 if (PP.getLangOpts().C99 && !PP.getLangOpts().GNUMode in MaybeRemoveCommaBeforeVaArgs() 166 PP.Diag(ResultToks.back().getLocation(), diag::ext_paste_comma); in MaybeRemoveCommaBeforeVaArgs() 229 &ConcatenatedVAOPTResultToks[0], PP, VCtx.hasCharifyBefore() /*Charify*/, in stringifyVAOPTContents() 253 VAOptExpansionContext VCtx(PP); in ExpandFunctionArguments() 301 ActualArgs->invokedWithVariadicArgument(Macro, PP); in ExpandFunctionArguments() 390 UnexpArg, PP, Charify, ExpansionLocStart, ExpansionLocEnd); in ExpandFunctionArguments() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Serialization/ |
| H A D | GeneratePCH.cpp | 26 Preprocessor &PP, ModuleCache &ModCache, StringRef OutputFile, in PCHGenerator() argument 32 : PP(PP), Subject(&PP), OutputFile(OutputFile), isysroot(isysroot.str()), in PCHGenerator() 47 if (PP.getLangOpts().isCompilingModule()) { in getEmittingModule() 48 M = PP.getHeaderSearchInfo().lookupModule(PP.getLangOpts().CurrentModule, in getEmittingModule() 52 assert(PP.getDiagnostics().hasErrorOccurred() && in getEmittingModule() 60 return PP.getDiagnostics(); in getDiagnostics() 64 if (!PP.getHeaderSearchInfo() in InitializeSema() 72 if (PP.getModuleLoader().HadFatalFailure) in HandleTranslationUnit() 75 bool hasErrors = PP.getDiagnostics().hasErrorOccurred(); in HandleTranslationUnit() 84 PP.getDiagnostics().getClient()->clear(); in HandleTranslationUnit() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Frontend/ |
| H A D | PrintPreprocessedOutput.cpp | 34 Preprocessor &PP, raw_ostream *OS) { in PrintMacroDefinition() argument 69 *OS << PP.getSpelling(T, SpellingBuffer); in PrintMacroDefinition() 79 Preprocessor &PP; member in __anon881592160111::PrintPPOutputPPCallbacks 114 : PP(pp), SM(PP.getSourceManager()), ConcatInfo(PP), OS(os), in PrintPPOutputPPCallbacks() 440 *OS << PP.getSpelling(T, SpellingBuffer); in EmbedDirective() 492 const std::string TokenText = PP.getSpelling(IncludeTok); in InclusionDirective() 512 << "#" << PP.getSpelling(IncludeTok) << " " in InclusionDirective() 570 SourceManager &SM = PP.getSourceManager(); in MacroDefined() 575 PrintMacroDefinition(*MacroNameTok.getIdentifierInfo(), *MI, PP, OS); in MacroDefined() 850 void HandlePragma(Preprocessor &PP, PragmaIntroducer Introducer, in HandlePragma() [all …]
|
| H A D | CompilerInstance.cpp | 172 PP = std::move(Value); in setPreprocessor() 452 PP = std::make_shared<Preprocessor>(Invocation->getPreprocessorOpts(), in createPreprocessor() 458 PP->Initialize(getTarget(), getAuxTarget()); in createPreprocessor() 461 PP->createPreprocessingRecord(); in createPreprocessor() 464 InitializeFileRemapping(PP->getDiagnostics(), PP->getSourceManager(), in createPreprocessor() 465 PP->getFileManager(), PPOpts); in createPreprocessor() 468 InitializePreprocessor(*PP, PPOpts, getPCHContainerReader(), in createPreprocessor() 474 const llvm::Triple *HeaderSearchTriple = &PP->getTargetInfo().getTriple(); in createPreprocessor() 475 if (PP->getTargetInfo().getTriple().getOS() == llvm::Triple::CUDA && in createPreprocessor() 476 PP->getAuxTargetInfo()) in createPreprocessor() [all …]
|
| H A D | DependencyFile.cpp | 34 Preprocessor &PP; member 35 DepCollectorPPCallbacks(DependencyCollector &L, Preprocessor &PP) in DepCollectorPPCallbacks() 36 : DepCollector(L), PP(PP) {} in DepCollectorPPCallbacks() 48 PP.getSourceManager().getNonBuiltinFilenameForID(FID)) in LexedFileChanged() 119 DepCollector.finishedMainFile(PP.getDiagnostics()); in EndOfMainFile() 209 void DependencyCollector::attachToPreprocessor(Preprocessor &PP) { in attachToPreprocessor() argument 210 PP.addPPCallbacks(std::make_unique<DepCollectorPPCallbacks>(*this, PP)); in attachToPreprocessor() 211 PP.getHeaderSearchInfo().getModuleMap().addModuleMapCallbacks( in attachToPreprocessor() 233 void DependencyFileGenerator::attachToPreprocessor(Preprocessor &PP) { in attachToPreprocessor() argument 236 PP.SetSuppressIncludeNotFoundError(true); in attachToPreprocessor() [all …]
|
| H A D | DependencyGraph.cpp | 29 const Preprocessor *PP; member in __anoncc7c34da0111::DependencyGraphCallback 46 : PP(_PP), OutputFile(OutputFile.str()), SysRoot(SysRoot.str()) {} in DependencyGraphCallback() 67 void clang::AttachDependencyGraphGen(Preprocessor &PP, StringRef OutputFile, in AttachDependencyGraphGen() argument 69 PP.addPPCallbacks(std::make_unique<DependencyGraphCallback>(&PP, OutputFile, in AttachDependencyGraphGen() 81 SourceManager &SM = PP->getSourceManager(); in InclusionDirective() 99 SourceManager &SM = PP->getSourceManager(); in EmbedDirective() 122 PP->getDiagnostics().Report(diag::err_fe_error_opening) << OutputFile in OutputGraphFile()
|
| /freebsd/contrib/llvm-project/clang/lib/Analysis/ |
| H A D | ReachableCode.cpp | 150 Preprocessor &PP, in isExpandedFromConfigurationMacro() argument 158 SourceManager &SM = PP.getSourceManager(); in isExpandedFromConfigurationMacro() 164 StringRef MacroName = PP.getImmediateMacroName(TopL); in isExpandedFromConfigurationMacro() 167 } else if (!PP.getLangOpts().CPlusPlus) { in isExpandedFromConfigurationMacro() 170 StringRef MacroName = PP.getImmediateMacroName(TopL); in isExpandedFromConfigurationMacro() 179 static bool isConfigurationValue(const ValueDecl *D, Preprocessor &PP); 189 Preprocessor &PP, in isConfigurationValue() argument 205 return isConfigurationValue(PE->getSubExpr(), PP, SilenceableCondVal, in isConfigurationValue() 220 return isConfigurationValue(cast<DeclRefExpr>(S)->getDecl(), PP); in isConfigurationValue() 231 isExpandedFromConfigurationMacro(E, PP, IgnoreYES_NO); in isConfigurationValue() [all …]
|
| H A D | MacroExpansionContext.cpp | 15 static void dumpTokenInto(const clang::Preprocessor &PP, llvm::raw_ostream &OS, 21 const Preprocessor &PP; member in clang::detail::MacroExpansionRangeRecorder 27 const Preprocessor &PP, SourceManager &SM, in MacroExpansionRangeRecorder() argument 29 : PP(PP), SM(SM), ExpansionRanges(ExpansionRanges) {} in MacroExpansionRangeRecorder() 50 (void)PP; in MacroExpands() 52 dumpTokenInto(PP, llvm::dbgs(), MacroName); in MacroExpands() 90 PP = &NewPP; in registerForPreprocessor() 94 PP->addPPCallbacks(std::make_unique<detail::MacroExpansionRangeRecorder>( in registerForPreprocessor() 95 *PP, *SM, ExpansionRanges)); in registerForPreprocessor() 97 PP->setTokenWatcher([this](const Token &Tok) { onTokenLexed(Tok); }); in registerForPreprocessor() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Frontend/Rewrite/ |
| H A D | RewriteMacros.cpp | 60 static void LexRawTokensFromMainFile(Preprocessor &PP, in LexRawTokensFromMainFile() argument 62 SourceManager &SM = PP.getSourceManager(); in LexRawTokensFromMainFile() 67 Lexer RawLex(SM.getMainFileID(), FromFile, SM, PP.getLangOpts()); in LexRawTokensFromMainFile() 80 PP.LookUpIdentifierInfo(RawTok); in LexRawTokensFromMainFile() 88 void clang::RewriteMacrosInInput(Preprocessor &PP, raw_ostream *OS) { in RewriteMacrosInInput() argument 89 SourceManager &SM = PP.getSourceManager(); in RewriteMacrosInInput() 92 Rewrite.setSourceMgr(SM, PP.getLangOpts()); in RewriteMacrosInInput() 96 LexRawTokensFromMainFile(PP, RawTokens); in RewriteMacrosInInput() 102 PP.EnterMainSourceFile(); in RewriteMacrosInInput() 104 PP.Lex(PPTok); in RewriteMacrosInInput() [all …]
|
| H A D | HTMLPrint.cpp | 35 Preprocessor &PP; member in __anon9c69dd1c0111::HTMLPrinter 41 : Out(std::move(OS)), PP(pp), SyntaxHighlight(_SyntaxHighlight), in HTMLPrinter() 50 clang::CreateHTMLPrinter(std::unique_ptr<raw_ostream> OS, Preprocessor &PP, in CreateHTMLPrinter() argument 52 return std::make_unique<HTMLPrinter>(std::move(OS), PP, SyntaxHighlight, in CreateHTMLPrinter() 61 if (PP.getDiagnostics().hasErrorOccurred()) in HandleTranslationUnit() 83 if (SyntaxHighlight) html::SyntaxHighlight(R, FID, PP); in HandleTranslationUnit() 84 if (HighlightMacros) html::HighlightMacros(R, FID, PP); in HandleTranslationUnit()
|
| H A D | InclusionRewriter.cpp | 37 Preprocessor &PP; ///< Used to find inclusion directives. member in __anon7638e4020111::InclusionRewriter 56 InclusionRewriter(Preprocessor &PP, raw_ostream &OS, bool ShowLineMarkers, 107 InclusionRewriter::InclusionRewriter(Preprocessor &PP, raw_ostream &OS, in InclusionRewriter() argument 110 : PP(PP), SM(PP.getSourceManager()), OS(OS), MainEOL("\n"), in InclusionRewriter() 373 PP.LookUpIdentifierInfo(RawToken); in NextIdentifierName() 391 Lexer RawLex(FileId, FromFile, PP.getSourceManager(), PP.getLangOpts()); in Process() 397 if (FileId == SM.getMainFileID() || FileId == PP.getPredefinesFileID()) in Process() 422 PP.LookUpIdentifierInfo(RawToken); in Process() 432 if (FileId != PP.getPredefinesFileID()) in Process() 549 void clang::RewriteIncludesInInput(Preprocessor &PP, raw_ostream *OS, in RewriteIncludesInInput() argument [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| H A D | MustExecute.h | 422 iterator &begin(const Instruction *PP) { in begin() 423 auto &It = InstructionIteratorMap[PP]; in begin() 425 It.reset(new iterator(*this, PP)); in begin() 430 const_iterator &begin(const Instruction *PP) const { in begin() 431 return *InstructionIteratorMap.find(PP)->second; in begin() 444 llvm::iterator_range<iterator> range(const Instruction *PP) { in range() 445 return llvm::make_range(begin(PP), end(PP)); in range() 449 llvm::iterator_range<const_iterator> range(const Instruction *PP) const { in range() 450 return llvm::make_range(begin(PP), end(PP)); in range() 458 bool checkForAllContext(const Instruction *PP, in checkForAllContext() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Index/ |
| H A D | IndexingAction.cpp | 102 std::shared_ptr<Preprocessor> PP; member in __anonb20dd8150111::IndexASTConsumer 108 std::shared_ptr<Preprocessor> PP, in IndexASTConsumer() argument 112 PP(std::move(PP)), in IndexASTConsumer() 115 assert(this->PP != nullptr); in IndexASTConsumer() 122 IndexCtx->getDataConsumer().setPreprocessor(PP); in Initialize() 123 PP->addPPCallbacks(std::make_unique<IndexPPCallbacks>(IndexCtx)); in Initialize() 171 const IndexingOptions &Opts, std::shared_ptr<Preprocessor> PP, in createIndexingASTConsumer() argument 173 return std::make_unique<IndexASTConsumer>(DataConsumer, Opts, PP, in createIndexingASTConsumer() 179 const IndexingOptions &Opts, std::shared_ptr<Preprocessor> PP) { in createIndexingASTConsumer() argument 188 return createIndexingASTConsumer(std::move(DataConsumer), Opts, std::move(PP), in createIndexingASTConsumer() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ |
| H A D | ASTTypeTraits.cpp | 187 const PrintingPolicy &PP) const { in print() 189 TA->print(PP, OS, /*IncludeType*/ true); in print() 191 TAL->getArgument().print(PP, OS, /*IncludeType*/ true); in print() 193 TN->print(OS, PP); in print() 195 NNS->print(OS, PP); in print() 198 NNS->print(OS, PP); in print() 202 QT->print(OS, PP); in print() 204 TL->getType().print(OS, PP); in print() 206 D->print(OS, PP); in print() 208 S->printPretty(OS, nullptr, PP); in print() [all …]
|
| /freebsd/contrib/llvm-project/clang/include/clang/Lex/ |
| H A D | MacroArgs.h | 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,
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
| H A D | PlistDiagnostics.cpp | 43 const Preprocessor &PP; member in __anon46fda2930111::PlistDiagnostics 53 const std::string &OutputFile, const Preprocessor &PP, 82 const Preprocessor &PP; member in __anon46fda2930211::PlistPrinter 88 PlistPrinter(const FIDMap &FM, const Preprocessor &PP, in PlistPrinter() argument 91 : FM(FM), PP(PP), CTU(CTU), MacroExpansions(MacroExpansions) {} in PlistPrinter() 185 const SourceManager &SM = PP.getSourceManager(); in EmitRanges() 186 const LangOptions &LangOpts = PP.getLangOpts(); in EmitRanges() 216 const SourceManager &SM = PP.getSourceManager(); in EmitFixits() 217 const LangOptions &LangOpts = PP.getLangOpts(); in EmitFixits() 242 const SourceManager &SM = PP.getSourceManager(); in ReportControlFlow() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | MacroPPCallbacks.cpp | 23 Preprocessor &PP, raw_ostream &Name, in writeMacroDefinition() argument 56 Value << PP.getSpelling(T, SpellingBuffer); in writeMacroDefinition() 61 MacroPPCallbacks::MacroPPCallbacks(CodeGenerator *Gen, Preprocessor &PP) in MacroPPCallbacks() argument 62 : Gen(Gen), PP(PP), Status(NoScope) {} in MacroPPCallbacks() 120 if (PP.getSourceManager().isWrittenInCommandLineFile(Loc)) in FileEntered() 140 if (!PP.getSourceManager().isWrittenInBuiltinFile(Loc)) in FileExited() 185 writeMacroDefinition(*Id, *MD->getMacroInfo(), PP, Name, Value); in MacroDefined()
|