Searched refs:PP (Results 51 - 75 of 181) sorted by relevance

12345678

/freebsd-11-stable/contrib/llvm-project/clang/lib/Parse/
H A DParseAST.cpp70 const Preprocessor &PP = P.getPreprocessor(); local
71 Tok.getLocation().print(OS, PP.getSourceManager());
75 // Do the equivalent of PP.getSpelling(Tok) except for the parts that would
99 void clang::ParseAST(Preprocessor &PP, ASTConsumer *Consumer, argument
106 new Sema(PP, Ctx, *Consumer, TUKind, CompletionConsumer));
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/Index/
H A DIndexDataConsumer.h39 virtual void setPreprocessor(std::shared_ptr<Preprocessor> PP) {} argument
/freebsd-11-stable/contrib/llvm-project/clang/lib/Rewrite/
H A DHTMLRewrite.cpp444 void html::SyntaxHighlight(Rewriter &R, FileID FID, const Preprocessor &PP) {
447 const SourceManager &SM = PP.getSourceManager();
449 Lexer L(FID, FromFile, SM, PP.getLangOpts());
473 PP.LookUpIdentifierInfo(Tok);
534 void html::HighlightMacros(Rewriter &R, FileID FID, const Preprocessor& PP) {
536 const SourceManager &SM = PP.getSourceManager();
540 Lexer L(FID, FromFile, SM, PP.getLangOpts());
563 PP.LookUpIdentifierInfo(Tok);
572 DiagnosticsEngine TmpDiags(PP.getDiagnostics().getDiagnosticIDs(),
573 &PP
[all...]
H A DTokenRewriter.cpp44 // IdentifierTable directly instead of PP.
45 PP.LookUpIdentifierInfo(Tok);
/freebsd-11-stable/contrib/llvm-project/clang/lib/Frontend/
H A DCompilerInstance.cpp109 PP = std::move(Value);
389 PP = std::make_shared<Preprocessor>(Invocation->getPreprocessorOptsPtr(),
395 PP->Initialize(getTarget(), getAuxTarget());
398 PP->createPreprocessingRecord();
401 InitializeFileRemapping(PP->getDiagnostics(), PP->getSourceManager(),
402 PP->getFileManager(), PPOpts);
405 InitializePreprocessor(*PP, PPOpts, getPCHContainerReader(),
411 const llvm::Triple *HeaderSearchTriple = &PP->getTargetInfo().getTriple();
412 if (PP
483 Preprocessor &PP = getPreprocessor(); local
506 createPCHExternalASTSource( StringRef Path, StringRef Sysroot, bool DisablePCHValidation, bool AllowPCHWithCompilerErrors, Preprocessor &PP, InMemoryModuleCache &ModuleCache, ASTContext &Context, const PCHContainerReader &PCHContainerRdr, ArrayRef<std::shared_ptr<ModuleFileExtension>> Extensions, ArrayRef<std::shared_ptr<DependencyCollector>> DependencyCollectors, void *DeserializationListener, bool OwnDeserializationListener, bool Preamble, bool UseGlobalModuleIndex) argument
565 EnableCodeCompletion(Preprocessor &PP, StringRef Filename, unsigned Line, unsigned Column) argument
609 createCodeCompletionConsumer(Preprocessor &PP, StringRef Filename, unsigned Line, unsigned Column, const CodeCompleteOptions &Opts, raw_ostream &OS) argument
1340 checkConfigMacro(Preprocessor &PP, StringRef ConfigMacro, Module *Mod, SourceLocation ImportLoc) argument
[all...]
H A DFrontendActions.cpp727 Preprocessor &PP = getCompilerInstance().getPreprocessor(); local
730 PP.getHeaderSearchInfo().getHeaderSearchOpts();
742 Preprocessor &PP = getCompilerInstance().getPreprocessor(); local
743 SourceManager &SM = PP.getSourceManager();
747 Lexer RawLex(SM.getMainFileID(), FromFile, SM, PP.getLangOpts());
753 PP.DumpToken(RawTok, true);
760 Preprocessor &PP = getCompilerInstance().getPreprocessor(); local
763 PP.EnterMainSourceFile();
765 PP.Lex(Tok);
766 PP
772 Preprocessor &PP = getCompilerInstance().getPreprocessor(); local
890 const Preprocessor &PP = CI.getPreprocessor(); local
948 Preprocessor &PP = getCompilerInstance().getPreprocessor(); local
[all...]
H A DVerifyDiagnosticConsumer.cpp402 Preprocessor *PP, SourceLocation Pos,
405 DiagnosticsEngine &Diags = PP ? PP->getDiagnostics() : SM.getDiagnostics();
524 } else if (PP && PH.Search(":")) {
532 PP->LookupFile(Pos, Filename, false, nullptr, nullptr, CurDir,
664 const Preprocessor *PP) {
667 if (PP) {
668 CurrentPreprocessor = PP;
670 setSourceManager(PP->getSourceManager());
671 const_cast<Preprocessor *>(PP)
401 ParseDirective(StringRef S, ExpectedData *ED, SourceManager &SM, Preprocessor *PP, SourceLocation Pos, VerifyDiagnosticConsumer::DirectiveStatus &Status, VerifyDiagnosticConsumer::MarkerTracker &Markers) argument
663 BeginSourceFile(const LangOptions &LangOpts, const Preprocessor *PP) argument
746 HandleComment(Preprocessor &PP, SourceRange Comment) argument
[all...]
H A DModuleDependencyCollector.cpp105 void ModuleDependencyCollector::attachToPreprocessor(Preprocessor &PP) { argument
106 PP.addPPCallbacks(std::make_unique<ModuleDependencyPPCallbacks>(
107 *this, PP.getSourceManager()));
108 PP.getHeaderSearchInfo().getModuleMap().addModuleMapCallbacks(
H A DInitPreprocessor.cpp1 //===--- InitPreprocessor.cpp - PP initialization code. ---------*- C++ -*-===//
80 static void AddImplicitIncludePCH(MacroBuilder &Builder, Preprocessor &PP, argument
84 ASTReader::getOriginalSourceFile(ImplicitIncludePCH, PP.getFileManager(),
85 PCHContainerRdr, PP.getDiagnostics());
1128 Preprocessor &PP, const PreprocessorOptions &InitOpts,
1131 const LangOptions &LangOpts = PP.getLangOpts();
1140 if (!PP.getLangOpts().AsmPreprocessor)
1148 PP.getAuxTargetInfo())
1149 InitializePredefinedMacros(*PP.getAuxTargetInfo(), LangOpts, FEOpts,
1150 PP
1127 InitializePreprocessor( Preprocessor &PP, const PreprocessorOptions &InitOpts, const PCHContainerReader &PCHContainerRdr, const FrontendOptions &FEOpts) argument
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/lib/ARCMigrate/
H A DTransformActions.cpp31 Preprocessor &PP; member in class:__anon293::TransformActionsImpl
67 CharRange(CharSourceRange range, SourceManager &srcMgr, Preprocessor &PP) { argument
72 End = FullSourceLoc(getLocForEndOfToken(endLoc, srcMgr, PP), srcMgr);
98 SourceManager &SrcMgr, Preprocessor &PP) {
99 return CharRange(CharSourceRange::getTokenRange(LHS), SrcMgr, PP)
101 SrcMgr, PP));
122 ASTContext &ctx, Preprocessor &PP)
123 : CapturedDiags(capturedDiags), Ctx(ctx), PP(PP), IsInTransaction(false) { }
178 SourceManager &SM,Preprocessor &PP);
97 compare(SourceRange LHS, SourceRange RHS, SourceManager &SrcMgr, Preprocessor &PP) argument
121 TransformActionsImpl(CapturedDiagList &capturedDiags, ASTContext &ctx, Preprocessor &PP) argument
591 getLocForEndOfToken(SourceLocation loc, SourceManager &SM, Preprocessor &PP) argument
605 TransformActions(DiagnosticsEngine &diag, CapturedDiagList &capturedDiags, ASTContext &ctx, Preprocessor &PP) argument
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Analysis/
H A DMustExecute.cpp638 MustBeExecutedIterator &It, const Instruction *PP) {
639 if (!PP)
640 return PP;
641 LLVM_DEBUG(dbgs() << "Find next instruction for " << *PP << "\n");
644 if (!ExploreInterBlock && PP->isTerminator()) {
652 bool TransfersExecution = isGuaranteedToTransferExecutionToSuccessor(PP);
660 if (!PP->isTerminator()) {
661 const Instruction *NextPP = PP->getNextNode();
667 assert(PP->isTerminator() && "Expected a terminator!");
670 if (PP
637 getMustBeExecutedNextInstruction( MustBeExecutedIterator &It, const Instruction *PP) argument
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/lib/Lex/
H A DMacroInfo.cpp74 bool MacroInfo::isIdenticalTo(const MacroInfo &Other, Preprocessor &PP, argument
125 if (PP.getSpelling(A) != PP.getSpelling(B))
241 ModuleMacro *ModuleMacro::create(Preprocessor &PP, Module *OwningModule, argument
244 void *Mem = PP.getPreprocessorAllocator().Allocate(
H A DPPDirectives.cpp142 static MacroDiag shouldWarnOnMacroDef(Preprocessor &PP, IdentifierInfo *II) { argument
143 const LangOptions &Lang = PP.getLangOpts();
154 static MacroDiag shouldWarnOnMacroUndef(Preprocessor &PP, IdentifierInfo *II) { argument
155 const LangOptions &Lang = PP.getLangOpts();
854 : PP(pp), save(pp->DisableMacroExpansion) {
860 PP->DisableMacroExpansion = save;
864 Preprocessor *PP; member in class:Preprocessor::ResetMacroExpansionHelper
1081 // Read the rest of the PP line.
1090 unsigned DiagID, Preprocessor &PP,
1093 PP
1089 GetLineValue(Token &DigitTok, unsigned &Val, unsigned DiagID, Preprocessor &PP, bool IsGNULineDirective=false) argument
1226 ReadLineMarkerFlags(bool &IsFileEntry, bool &IsFileExit, SrcMgr::CharacteristicKind &FileKind, Preprocessor &PP) argument
1562 diagnoseAutoModuleImport( Preprocessor &PP, SourceLocation HashLoc, Token &IncludeTok, ArrayRef<std::pair<IdentifierInfo *, SourceLocation>> Path, SourceLocation PathEnd) argument
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/lib/Analysis/
H A DProgramPoint.cpp54 const PrintingPolicy &PP = Context.getPrintingPolicy(); local
73 RS->printJson(Out, nullptr, PP, AddQuotes);
156 LHS->printJson(Out, nullptr, PP, AddQuotes);
163 RHS->printJson(Out, nullptr, PP, AddQuotes);
197 S->printJson(Out, nullptr, PP, AddQuotes);
/freebsd-11-stable/contrib/llvm-project/clang/lib/Sema/
H A DIdentifierResolver.cpp89 IdentifierResolver::IdentifierResolver(Preprocessor &PP) argument
90 : LangOpt(PP.getLangOpts()), PP(PP), IdDeclInfos(new IdDeclInfoMap) {}
380 PP.getExternalSource()->updateOutOfDateIdentifier(II);
385 PP.getExternalSource()->updateOutOfDateIdentifier(II);
/freebsd-11-stable/contrib/groff/src/roff/grog/
H A Dgrog.pl93 $PP++;
200 elsif ($PP > 0) {
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/Sema/
H A DIdentifierResolver.h134 explicit IdentifierResolver(Preprocessor &PP);
181 Preprocessor &PP; member in class:clang::IdentifierResolver
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/Frontend/
H A DCompilerInstance.h95 std::shared_ptr<Preprocessor> PP; member in class:clang::CompilerInstance
441 bool hasPreprocessor() const { return PP != nullptr; }
445 assert(PP && "Compiler instance has no preprocessor!");
446 return *PP;
449 std::shared_ptr<Preprocessor> getPreprocessorPtr() { return PP; }
452 llvm::BuryPointer(new std::shared_ptr<Preprocessor>(PP));
671 bool AllowPCHWithCompilerErrors, Preprocessor &PP,
687 Preprocessor &PP, StringRef Filename, unsigned Line, unsigned Column,
H A DLogDiagnosticPrinter.h72 void BeginSourceFile(const LangOptions &LO, const Preprocessor *PP) override {
H A DVerifyDiagnosticConsumer.h302 const Preprocessor *PP) override;
320 bool HandleComment(Preprocessor &PP, SourceRange Comment) override;
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/Lex/
H A DLiteralSupport.h43 Preprocessor &PP; // needed for diagnostics member in class:clang::NumericLiteralParser
59 Preprocessor &PP);
184 SourceLocation Loc, Preprocessor &PP,
222 Preprocessor &PP, bool Complain = true);
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DFlattenCFG.cpp157 BasicBlock *PP = Pred->getSinglePredecessor();
165 if (UnCondBlock || !PP || (Preds.count(PP) == 0) ||
181 if (PP && Preds.count(PP)) {
/freebsd-11-stable/contrib/gcc/
H A Dpretty-print.c35 #define pp_formatted_text_data(PP) \
36 ((const char *) obstack_base (pp_base (PP)->buffer->obstack))
41 #define pp_integer_with_precision(PP, ARG, PREC, T, F) \
46 pp_scalar (PP, "%" F, va_arg (ARG, T)); \
50 pp_scalar (PP, "%l" F, va_arg (ARG, long T)); \
54 pp_scalar (PP, "%ll" F, va_arg (ARG, long long T)); \
204 TEXT->args_ptr into a series of chunks in PP->buffer->args[].
227 PP->buffer->args[]. Even-numbered chunks are to be output
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/Serialization/
H A DASTWriter.h132 Preprocessor *PP = nullptr; member in class:clang::ASTWriter
451 void WriteControlBlock(Preprocessor &PP, ASTContext &Context,
455 ASTFileSignature writeUnhashedControlBlock(Preprocessor &PP,
464 const Preprocessor &PP);
465 void WritePreprocessor(const Preprocessor &PP, bool IsModule);
490 void WriteIdentifierTable(Preprocessor &PP, IdentifierResolver &IdResolver,
741 const Preprocessor &PP; member in class:clang::PCHGenerator
757 PCHGenerator(const Preprocessor &PP, InMemoryModuleCache &ModuleCache,
/freebsd-11-stable/contrib/llvm-project/clang/lib/Tooling/DependencyScanning/
H A DModuleDepCollector.cpp131 void ModuleDepCollector::attachToPreprocessor(Preprocessor &PP) { argument
132 PP.addPPCallbacks(std::make_unique<ModuleDepCollectorPP>(Instance, *this));

Completed in 146 milliseconds

12345678