Searched defs:PP (Results 1 - 25 of 82) sorted by relevance

1234

/external/clang/lib/Frontend/Rewrite/
H A DRewriteTest.cpp19 void clang::DoRewriteTest(Preprocessor &PP, raw_ostream* OS) { argument
20 SourceManager &SM = PP.getSourceManager();
21 const LangOptions &LangOpts = PP.getLangOpts();
38 *OS << PP.getSpelling(*I);
H A DHTMLPrint.cpp36 Preprocessor &PP; member in class:__anon1707::HTMLPrinter
42 : Out(OS), PP(pp), SyntaxHighlight(_SyntaxHighlight),
51 Preprocessor &PP,
54 return llvm::make_unique<HTMLPrinter>(OS, PP, SyntaxHighlight,
63 if (PP.getDiagnostics().hasErrorOccurred())
85 if (SyntaxHighlight) html::SyntaxHighlight(R, FID, PP);
86 if (HighlightMacros) html::HighlightMacros(R, FID, PP);
50 CreateHTMLPrinter(raw_ostream *OS, Preprocessor &PP, bool SyntaxHighlight, bool HighlightMacros) argument
/external/clang/include/clang/Lex/
H A DTokenConcatenation.h32 Preprocessor &PP; member in class:clang::TokenConcatenation
59 TokenConcatenation(Preprocessor &PP);
H A DPTHManager.h74 /// PP - The Preprocessor object that will use this PTHManager to create
76 Preprocessor* PP; member in class:clang::PTHManager
134 void setPreprocessor(Preprocessor *pp) { PP = pp; }
H A DTokenLexer.h39 /// PP - The current preprocessor object we are expanding for.
41 Preprocessor &PP; member in class:clang::TokenLexer
111 : Macro(nullptr), ActualArgs(nullptr), PP(pp), OwnsTokens(false) {
127 : Macro(nullptr), ActualArgs(nullptr), PP(pp), OwnsTokens(false) {
198 Preprocessor &PP);
H A DPreprocessorLexer.h30 Preprocessor *PP; // Preprocessor object controlling lexing. member in class:clang::PreprocessorLexer
61 /// Note that in raw mode that the PP pointer may be null.
79 : PP(nullptr), InitialNumSLocEntries(0),
151 Preprocessor *getPP() const { return PP; }
154 assert(PP &&
/external/clang/lib/Serialization/
H A DGeneratePCH.cpp27 const Preprocessor &PP, StringRef OutputFile,
32 : PP(PP), OutputFile(OutputFile), Module(Module), isysroot(isysroot.str()),
44 if (PP.getModuleLoader().HadFatalFailure)
47 bool hasErrors = PP.getDiagnostics().hasErrorOccurred();
57 PP.getDiagnostics().hasUncompilableErrorOccurred());
26 PCHGenerator( const Preprocessor &PP, StringRef OutputFile, clang::Module *Module, StringRef isysroot, std::shared_ptr<PCHBuffer> Buffer, ArrayRef<llvm::IntrusiveRefCntPtr<ModuleFileExtension>> Extensions, bool AllowASTWithErrors, bool IncludeTimestamps) argument
/external/clang/include/clang/AST/
H A DCommentSema.h47 const Preprocessor *PP; member in class:clang::comments::Sema
75 const Preprocessor *PP);
/external/libcxx/benchmarks/
H A Dfilesystem.bench.cpp16 path PP; local
18 PP /= Part;
19 benchmark::DoNotOptimize(PP.native().data());
21 const path P(PP.native());
33 path PP; local
35 PP /= Part;
36 benchmark::DoNotOptimize(PP.native().data());
38 const path P(PP.native().c_str());
51 path PP; local
53 PP /
82 path PP; local
101 path PP; local
120 path PP; local
[all...]
/external/clang/lib/Frontend/
H A DDependencyGraph.cpp30 const Preprocessor *PP; member in class:__anon1695::DependencyGraphCallback
47 : PP(_PP), OutputFile(OutputFile.str()), SysRoot(SysRoot.str()) { }
62 void clang::AttachDependencyGraphGen(Preprocessor &PP, StringRef OutputFile, argument
64 PP.addPPCallbacks(llvm::make_unique<DependencyGraphCallback>(&PP, OutputFile,
80 SourceManager &SM = PP->getSourceManager();
103 PP->getDiagnostics().Report(diag::err_fe_error_opening) << OutputFile
H A DTextDiagnosticPrinter.cpp40 const Preprocessor *PP) {
39 BeginSourceFile(const LangOptions &LO, const Preprocessor *PP) argument
H A DHeaderIncludeGen.cpp32 HeaderIncludesCallback(const Preprocessor *PP, bool ShowAllHeaders_, argument
36 : SM(PP->getSourceManager()), OutputFile(OutputFile_), DepOpts(DepOpts),
79 void clang::AttachHeaderIncludeGen(Preprocessor &PP, argument
92 PP.getDiagnostics().Report(clang::diag::warn_fe_cc_print_header_failure)
109 PP.addPPCallbacks(llvm::make_unique<HeaderIncludesCallback>(
110 &PP, ShowAllHeaders, OutputFile, DepOpts, OwnsOutputFile, ShowDepth,
H A DModuleDependencyCollector.cpp105 void ModuleDependencyCollector::attachToPreprocessor(Preprocessor &PP) { argument
106 PP.getHeaderSearchInfo().getModuleMap().addModuleMapCallbacks(
H A DChainedIncludesSource.cpp81 Preprocessor &PP = CI.getPreprocessor(); local
83 Reader.reset(new ASTReader(PP, CI.getASTContext(),
96 PP.setPredefines(Reader->getSuggestedPredefines());
174 Preprocessor &PP = Clang->getPreprocessor(); local
175 PP.getBuiltinInfo().initializeBuiltins(PP.getIdentifierTable(),
176 PP.getLangOpts());
H A DFrontendAction.cpp388 Preprocessor &PP = CI.getPreprocessor(); local
396 PP.getBuiltinInfo().initializeBuiltins(PP.getIdentifierTable(),
397 PP.getLangOpts());
/external/clang/lib/Lex/
H A DTokenConcatenation.cpp49 const LangOptions &LangOpts = PP.getLangOpts();
54 SourceManager &SM = PP.getSourceManager();
63 unsigned length = PP.getSpelling(Tok, TokPtr);
67 return IsStringPrefix(StringRef(PP.getSpelling(Tok)), LangOpts.CPlusPlus11);
70 TokenConcatenation::TokenConcatenation(Preprocessor &pp) : PP(pp) {
90 if (PP.getLangOpts().CPlusPlus11) {
103 if (PP.getLangOpts().CPlusPlus1z)
125 static char GetFirstChar(Preprocessor &PP, const Token &Tok) { argument
133 SourceManager &SM = PP.getSourceManager();
139 PP
[all...]
H A DMacroArgs.cpp27 bool VarargsElided, Preprocessor &PP) {
35 for (MacroArgs **Entry = &PP.MacroArgCache; *Entry;
73 void MacroArgs::destroy(Preprocessor &PP) { argument
82 ArgCache = PP.MacroArgCache;
83 PP.MacroArgCache = this;
132 Preprocessor &PP) const {
148 Preprocessor &PP) {
158 SaveAndRestore<bool> PreExpandingMacroArgs(PP.InMacroArgPreExpansion, true);
167 PP.EnterTokenStream(AT, NumToks, false /*disable expand*/,
174 PP
25 create(const MacroInfo *MI, ArrayRef<Token> UnexpArgTokens, bool VarargsElided, Preprocessor &PP) argument
147 getPreExpArgument(unsigned Arg, const MacroInfo *MI, Preprocessor &PP) argument
194 StringifyArgument(const Token *ArgToks, Preprocessor &PP, bool Charify, SourceLocation ExpansionLocStart, SourceLocation ExpansionLocEnd) argument
297 getStringifiedArgument(unsigned ArgNo, Preprocessor &PP, SourceLocation ExpansionLocStart, SourceLocation ExpansionLocEnd) argument
[all...]
H A DMacroInfo.cpp72 bool MacroInfo::isIdenticalTo(const MacroInfo &Other, Preprocessor &PP, argument
122 if (PP.getSpelling(A) != PP.getSpelling(B))
238 ModuleMacro *ModuleMacro::create(Preprocessor &PP, Module *OwningModule, argument
241 void *Mem = PP.getPreprocessorAllocator().Allocate(
/external/clang/lib/Parse/
H A DParseAST.cpp69 const Preprocessor &PP = P.getPreprocessor(); local
70 Tok.getLocation().print(OS, PP.getSourceManager());
74 // Do the equivalent of PP.getSpelling(Tok) except for the parts that would
98 void clang::ParseAST(Preprocessor &PP, ASTConsumer *Consumer, argument
105 new Sema(PP, Ctx, *Consumer, TUKind, CompletionConsumer));
/external/clang/unittests/Frontend/
H A DFrontendActionTest.cpp163 Preprocessor &PP = getCompilerInstance().getPreprocessor(); variable
164 PP.addPPCallbacks(std::unique_ptr<TestPPCallbacks>(Callbacks));
165 PP.EnterMainSourceFile();
/external/clang/include/clang/Sema/
H A DIdentifierResolver.h183 explicit IdentifierResolver(Preprocessor &PP);
188 Preprocessor &PP; member in class:clang::IdentifierResolver
/external/clang/unittests/Tooling/
H A DCommentHandlerTest.cpp31 CommentHandlerVisitor() : base(), PP(nullptr), Verified(false) {}
37 bool HandleComment(Preprocessor &PP, SourceRange Loc) override {
38 assert(&PP == this->PP && "Preprocessor changed!");
41 SourceManager &SM = PP.getSourceManager();
64 Preprocessor *PP; member in class:clang::CommentHandlerVisitor
77 V->PP = &CI.getPreprocessor();
78 V->PP->addCommentHandler(V);
85 V->PP->removeCommentHandler(V);
93 Preprocessor *PP; member in class:clang::CommentVerifier
96 CommentVerifier(const CommentList &Comments, Preprocessor *PP) argument
[all...]
/external/clang/lib/AST/
H A DRawCommentList.cpp203 const Preprocessor *PP,
215 PP);
202 parse(const ASTContext &Context, const Preprocessor *PP, const Decl *D) const argument
/external/clang/lib/Rewrite/
H A DHTMLRewrite.cpp357 void html::SyntaxHighlight(Rewriter &R, FileID FID, const Preprocessor &PP) { argument
360 const SourceManager &SM = PP.getSourceManager();
362 Lexer L(FID, FromFile, SM, PP.getLangOpts());
386 PP.LookUpIdentifierInfo(Tok);
446 void html::HighlightMacros(Rewriter &R, FileID FID, const Preprocessor& PP) { argument
448 const SourceManager &SM = PP.getSourceManager();
452 Lexer L(FID, FromFile, SM, PP.getLangOpts());
475 PP.LookUpIdentifierInfo(Tok);
484 DiagnosticsEngine TmpDiags(PP.getDiagnostics().getDiagnosticIDs(),
485 &PP
[all...]
/external/clang/lib/Sema/
H A DIdentifierResolver.cpp85 IdentifierResolver::IdentifierResolver(Preprocessor &PP) argument
86 : LangOpt(PP.getLangOpts()), PP(PP),
376 PP.getExternalSource()->updateOutOfDateIdentifier(II);
381 PP.getExternalSource()->updateOutOfDateIdentifier(II);

Completed in 832 milliseconds

1234