/external/clang/lib/Frontend/Rewrite/ |
H A D | RewriteTest.cpp | 19 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 D | HTMLPrint.cpp | 36 Preprocessor &PP; member in class:__anon1059::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 D | TokenConcatenation.h | 32 Preprocessor &PP; member in class:clang::TokenConcatenation 59 TokenConcatenation(Preprocessor &PP);
|
H A D | PTHManager.h | 74 /// 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 D | TokenLexer.h | 39 /// 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 D | PreprocessorLexer.h | 30 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 D | GeneratePCH.cpp | 27 PCHGenerator::PCHGenerator(const Preprocessor &PP, argument 32 : PP(PP), OutputFile(OutputFile), Module(Module), 44 if (PP.getModuleLoader().HadFatalFailure) 47 bool hasErrors = PP.getDiagnostics().hasErrorOccurred();
|
/external/clang/include/clang/AST/ |
H A D | CommentSema.h | 47 const Preprocessor *PP; member in class:clang::comments::Sema 75 const Preprocessor *PP);
|
/external/clang/lib/Frontend/ |
H A D | DependencyGraph.cpp | 30 const Preprocessor *PP; member in class:__anon1048::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 D | HeaderIncludeGen.cpp | 30 HeaderIncludesCallback(const Preprocessor *PP, bool ShowAllHeaders_, argument 33 : SM(PP->getSourceManager()), OutputFile(OutputFile_), 49 void clang::AttachHeaderIncludeGen(Preprocessor &PP, bool ShowAllHeaders, argument 61 PP.getDiagnostics().Report(clang::diag::warn_fe_cc_print_header_failure) 72 PP.addPPCallbacks(llvm::make_unique<HeaderIncludesCallback>(&PP,
|
H A D | TextDiagnosticPrinter.cpp | 40 const Preprocessor *PP) { 39 BeginSourceFile(const LangOptions &LO, const Preprocessor *PP) argument
|
H A D | ChainedIncludesSource.cpp | 81 Preprocessor &PP = CI.getPreprocessor(); local 83 Reader.reset(new ASTReader(PP, CI.getASTContext(), /*isysroot=*/"", 94 PP.setPredefines(Reader->getSuggestedPredefines()); 171 Preprocessor &PP = Clang->getPreprocessor(); local 172 PP.getBuiltinInfo().InitializeBuiltins(PP.getIdentifierTable(), 173 PP.getLangOpts());
|
H A D | FrontendAction.cpp | 370 Preprocessor &PP = CI.getPreprocessor(); local 378 PP.getBuiltinInfo().InitializeBuiltins(PP.getIdentifierTable(), 379 PP.getLangOpts());
|
H A D | FrontendActions.cpp | 571 Preprocessor &PP = getCompilerInstance().getPreprocessor(); local 572 SourceManager &SM = PP.getSourceManager(); 576 Lexer RawLex(SM.getMainFileID(), FromFile, SM, PP.getLangOpts()); 582 PP.DumpToken(RawTok, true); 589 Preprocessor &PP = getCompilerInstance().getPreprocessor(); local 592 PP.EnterMainSourceFile(); 594 PP.Lex(Tok); 595 PP.DumpToken(Tok, true); 610 Preprocessor &PP = getCompilerInstance().getPreprocessor(); local 613 PP [all...] |
/external/clang/lib/Lex/ |
H A D | TokenConcatenation.cpp | 49 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 D | MacroArgs.cpp | 27 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 { 137 if (II->hasMacroDefinition() && PP.getMacroInfo(II)->isEnabled()) 149 Preprocessor &PP) { 159 SaveAndRestore<bool> PreExpandingMacroArgs(PP.InMacroArgPreExpansion, true); 168 PP 25 create(const MacroInfo *MI, ArrayRef<Token> UnexpArgTokens, bool VarargsElided, Preprocessor &PP) argument 148 getPreExpArgument(unsigned Arg, const MacroInfo *MI, Preprocessor &PP) argument 195 StringifyArgument(const Token *ArgToks, Preprocessor &PP, bool Charify, SourceLocation ExpansionLocStart, SourceLocation ExpansionLocEnd) argument 298 getStringifiedArgument(unsigned ArgNo, Preprocessor &PP, SourceLocation ExpansionLocStart, SourceLocation ExpansionLocEnd) argument [all...] |
H A D | MacroInfo.cpp | 72 bool MacroInfo::isIdenticalTo(const MacroInfo &Other, Preprocessor &PP, argument 122 if (PP.getSpelling(A) != PP.getSpelling(B))
|
H A D | PPExpressions.cpp | 59 Preprocessor &PP); 83 bool ValueLive, Preprocessor &PP) { 88 PP.LexUnexpandedNonComment(PeekTok); 95 PP.LexUnexpandedNonComment(PeekTok); 99 if (PP.getCodeCompletionHandler()) 100 PP.getCodeCompletionHandler()->CodeCompleteMacroName(false); 101 PP.setCodeCompletionReached(); 102 PP.LexUnexpandedNonComment(PeekTok); 106 if (PP.CheckMacroName(PeekTok, MU_Other)) 117 Macro = PP 82 EvaluateDefined(PPValue &Result, Token &PeekTok, DefinedTracker &DT, bool ValueLive, Preprocessor &PP) argument 169 EvaluateValue(PPValue &Result, Token &PeekTok, DefinedTracker &DT, bool ValueLive, Preprocessor &PP) argument 462 EvaluateDirectiveSubExpr(PPValue &LHS, unsigned MinPrec, Token &PeekTok, bool ValueLive, Preprocessor &PP) argument [all...] |
/external/clang/lib/Parse/ |
H A D | ParseAST.cpp | 55 const Preprocessor &PP = P.getPreprocessor(); local 56 Tok.getLocation().print(OS, PP.getSourceManager()); 60 // Do the equivalent of PP.getSpelling(Tok) except for the parts that would 84 void clang::ParseAST(Preprocessor &PP, ASTConsumer *Consumer, argument 91 new Sema(PP, Ctx, *Consumer, TUKind, CompletionConsumer));
|
/external/clang/unittests/Frontend/ |
H A D | FrontendActionTest.cpp | 163 Preprocessor &PP = getCompilerInstance().getPreprocessor(); variable 164 PP.addPPCallbacks(std::unique_ptr<TestPPCallbacks>(Callbacks)); 165 PP.EnterMainSourceFile();
|
/external/clang/include/clang/Sema/ |
H A D | IdentifierResolver.h | 183 explicit IdentifierResolver(Preprocessor &PP); 188 Preprocessor &PP; member in class:clang::IdentifierResolver
|
/external/clang/unittests/Tooling/ |
H A D | CommentHandlerTest.cpp | 31 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 D | RawCommentList.cpp | 144 const Preprocessor *PP, 156 PP); 143 parse(const ASTContext &Context, const Preprocessor *PP, const Decl *D) const argument
|
/external/clang/lib/Rewrite/ |
H A D | HTMLRewrite.cpp | 357 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 D | IdentifierResolver.cpp | 85 IdentifierResolver::IdentifierResolver(Preprocessor &PP) argument 86 : LangOpt(PP.getLangOpts()), PP(PP), 376 PP.getExternalSource()->updateOutOfDateIdentifier(II); 381 PP.getExternalSource()->updateOutOfDateIdentifier(II);
|