/external/clang/include/clang/Lex/ |
TokenConcatenation.h | 32 Preprocessor &PP; 59 TokenConcatenation(Preprocessor &PP);
|
PTHManager.h | 65 /// PP - The Preprocessor object that will use this PTHManager to create 67 Preprocessor* PP; 123 void setPreprocessor(Preprocessor *pp) { PP = pp; }
|
TokenLexer.h | 39 /// PP - The current preprocessor object we are expanding for. 41 Preprocessor &PP; 110 MacroArgs *ActualArgs, Preprocessor &pp) 111 : Macro(nullptr), ActualArgs(nullptr), PP(pp), OwnsTokens(false) { 126 bool ownsTokens, Preprocessor &pp) 127 : Macro(nullptr), ActualArgs(nullptr), PP(pp), OwnsTokens(false) { 198 Preprocessor &PP);
|
PreprocessorLexer.h | 30 Preprocessor *PP; // Preprocessor object controlling lexing. 61 /// Note that in raw mode that the PP pointer may be null. 76 PreprocessorLexer(Preprocessor *pp, FileID fid); 79 : PP(nullptr), InitialNumSLocEntries(0), 151 Preprocessor *getPP() const { return PP; } 154 assert(PP &&
|
LiteralSupport.h | 43 Preprocessor &PP; // needed for diagnostics 59 Preprocessor &PP); 163 SourceLocation Loc, Preprocessor &PP, 200 Preprocessor &PP, bool Complain = true);
|
/external/clang/lib/Frontend/ |
DependencyGraph.cpp | 30 const Preprocessor *PP; 47 : PP(_PP), OutputFile(OutputFile.str()), SysRoot(SysRoot.str()) { } 62 void clang::AttachDependencyGraphGen(Preprocessor &PP, StringRef OutputFile, 64 PP.addPPCallbacks(new DependencyGraphCallback(&PP, OutputFile, SysRoot)); 79 SourceManager &SM = PP->getSourceManager(); 102 PP->getDiagnostics().Report(diag::err_fe_error_opening)
|
ChainedIncludesSource.cpp | 80 Preprocessor &PP = CI.getPreprocessor(); 82 Reader.reset(new ASTReader(PP, CI.getASTContext(), /*isysroot=*/"", 93 PP.setPredefines(Reader->getSuggestedPredefines()); 170 Preprocessor &PP = Clang->getPreprocessor(); 171 PP.getBuiltinInfo().InitializeBuiltins(PP.getIdentifierTable(), 172 PP.getLangOpts());
|
DependencyFile.cpp | 123 void DependencyCollector::attachToPreprocessor(Preprocessor &PP) { 124 PP.addPPCallbacks(new DepCollectorPPCallbacks(*this, PP.getSourceManager())); 135 const Preprocessor *PP; 150 : PP(_PP), OutputFile(Opts.OutputFile), Targets(Opts.Targets), 194 clang::Preprocessor &PP, const clang::DependencyOutputOptions &Opts) { 197 PP.getDiagnostics().Report(diag::err_fe_dependency_file_requires_MT); 203 PP.SetSuppressIncludeNotFoundError(true); 205 DFGImpl *Callback = new DFGImpl(&PP, Opts); 206 PP.addPPCallbacks(Callback); // PP owns the Callbac [all...] |
FrontendAction.cpp | 358 Preprocessor &PP = CI.getPreprocessor(); 366 PP.getBuiltinInfo().InitializeBuiltins(PP.getIdentifierTable(), 367 PP.getLangOpts());
|
FrontendActions.cpp | 548 Preprocessor &PP = getCompilerInstance().getPreprocessor(); 549 SourceManager &SM = PP.getSourceManager(); 553 Lexer RawLex(SM.getMainFileID(), FromFile, SM, PP.getLangOpts()); 559 PP.DumpToken(RawTok, true); 566 Preprocessor &PP = getCompilerInstance().getPreprocessor(); 569 PP.EnterMainSourceFile(); 571 PP.Lex(Tok); 572 PP.DumpToken(Tok, true); 593 Preprocessor &PP = getCompilerInstance().getPreprocessor(); 596 PP.IgnorePragmas() [all...] |
PrintPreprocessedOutput.cpp | 36 Preprocessor &PP, raw_ostream &OS) { 72 OS << PP.getSpelling(*I, SpellingBuffer); 82 Preprocessor &PP; 100 PrintPPOutputPPCallbacks(Preprocessor &pp, raw_ostream &os, 102 : PP(pp), SM(PP.getSourceManager()), 103 ConcatInfo(PP), OS(os), DisableLineMarkers(lineMarkers), 114 UseLineDirective = PP.getLangOpts().MicrosoftExt; 359 PrintMacroDefinition(*MacroNameTok.getIdentifierInfo(), *MI, PP, OS) [all...] |
CacheTokens.cpp | 187 Preprocessor& PP; 239 PTHWriter(llvm::raw_fd_ostream& out, Preprocessor& pp) 240 : Out(out), PP(pp), idcount(0), CurStrOffset(0) {} 288 Emit32(PP.getSourceManager().getFileOffset(T.getLocation())); 326 PP.LookUpIdentifierInfo(Tok); 356 IdentifierInfo* II = PP.LookUpIdentifierInfo(Tok); 379 PP.LookUpIdentifierInfo(Tok); 492 SourceManager &SM = PP.getSourceManager(); 493 const LangOptions &LOpts = PP.getLangOpts() [all...] |
/external/clang/lib/Parse/ |
ParseAST.cpp | 56 const Preprocessor &PP = P.getPreprocessor(); 57 Tok.getLocation().print(OS, PP.getSourceManager()); 61 // Do the equivalent of PP.getSpelling(Tok) except for the parts that would 85 void clang::ParseAST(Preprocessor &PP, ASTConsumer *Consumer, 92 new Sema(PP, Ctx, *Consumer, TUKind, CompletionConsumer));
|
/external/clang/lib/Rewrite/Frontend/ |
HTMLPrint.cpp | 36 Preprocessor &PP; 40 HTMLPrinter(raw_ostream *OS, Preprocessor &pp, 42 : Out(OS), PP(pp), SyntaxHighlight(_SyntaxHighlight), 51 Preprocessor &PP, 54 return new HTMLPrinter(OS, PP, SyntaxHighlight, HighlightMacros); 62 if (PP.getDiagnostics().hasErrorOccurred()) 84 if (SyntaxHighlight) html::SyntaxHighlight(R, FID, PP); 85 if (HighlightMacros) html::HighlightMacros(R, FID, PP);
|
InclusionRewriter.cpp | 40 Preprocessor &PP; ///< Used to find inclusion directives. 52 InclusionRewriter(Preprocessor &PP, raw_ostream &OS, bool ShowLineMarkers); 88 /// Initializes an InclusionRewriter with a \p PP source and \p OS destination. 89 InclusionRewriter::InclusionRewriter(Preprocessor &PP, raw_ostream &OS, 91 : PP(PP), SM(PP.getSourceManager()), OS(OS), PredefinesBuffer(nullptr), 95 UseLineDirective = PP.getLangOpts().MicrosoftExt; 269 PP.LookUpIdentifierInfo(RawToken); 301 PP.LookUpIdentifierInfo(Tok) [all...] |
/external/clang/include/clang/AST/ |
CommentSema.h | 47 const Preprocessor *PP; 75 const Preprocessor *PP);
|
/external/clang/include/clang/Sema/ |
IdentifierResolver.h | 183 explicit IdentifierResolver(Preprocessor &PP); 188 Preprocessor &PP;
|
/external/clang/unittests/Tooling/ |
CommentHandlerTest.cpp | 31 CommentHandlerVisitor() : base(), PP(nullptr), Verified(false) {} 37 virtual bool HandleComment(Preprocessor &PP, SourceRange Loc) { 38 assert(&PP == this->PP && "Preprocessor changed!"); 41 SourceManager &SM = PP.getSourceManager(); 64 Preprocessor *PP; 77 V->PP = &CI.getPreprocessor(); 78 V->PP->addCommentHandler(V); 85 V->PP->removeCommentHandler(V); 93 Preprocessor *PP; [all...] |
/external/clang/include/clang/Frontend/ |
CompilerInstance.h | 88 IntrusiveRefCntPtr<Preprocessor> PP; 394 bool hasPreprocessor() const { return PP != nullptr; } 398 assert(PP && "Compiler instance has no preprocessor!"); 399 return *PP; 403 BuryPointer(PP.get()); 404 PP.resetWithoutRelease(); 592 bool AllowPCHWithCompilerErrors, Preprocessor &PP, ASTContext &Context, 604 createCodeCompletionConsumer(Preprocessor &PP, const std::string &Filename,
|
/external/clang/lib/Analysis/ |
ReachableCode.cpp | 127 Preprocessor &PP, 139 SourceManager &SM = PP.getSourceManager(); 141 StringRef MacroName = PP.getImmediateMacroName(TopL); 150 static bool isConfigurationValue(const ValueDecl *D, Preprocessor &PP); 160 Preprocessor &PP, 173 return isConfigurationValue(PE->getSubExpr(), PP, SilenceableCondVal, 188 return isConfigurationValue(cast<DeclRefExpr>(S)->getDecl(), PP); 198 return WrappedInParens || isExpandedFromConfigurationMacro(E, PP, IgnoreYES_NO); 203 return isConfigurationValue(cast<MemberExpr>(S)->getMemberDecl(), PP); 212 return isConfigurationValue(B->getLHS(), PP, SilenceableCondVal [all...] |
/external/clang/lib/StaticAnalyzer/Core/ |
HTMLDiagnostics.cpp | 43 const Preprocessor &PP; 46 HTMLDiagnostics(AnalyzerOptions &AnalyzerOpts, const std::string& prefix, const Preprocessor &pp); 76 const Preprocessor &pp) 77 : Directory(prefix), createdDir(false), noDir(false), PP(pp), AnalyzerOpts(AnalyzerOpts) { 83 const Preprocessor &PP) { 84 C.push_back(new HTMLDiagnostics(AnalyzerOpts, prefix, PP)); 131 Rewriter R(const_cast<SourceManager&>(SMgr), PP.getLangOpts()); 171 html::SyntaxHighlight(R, FID, PP); 172 html::HighlightMacros(R, FID, PP); [all...] |
CheckerManager.cpp | 316 const ProgramPoint &PP; 323 const ProgramPoint &pp) 324 : Checkers(checkers), Loc(loc), Val(val), S(s), Eng(eng), PP(pp) {} 328 const ProgramPoint &L = PP.withTag(checkFn.Checker); 341 const ProgramPoint &PP) { 342 CheckBindContext C(BindCheckers, location, val, S, Eng, PP);
|
/external/clang/include/clang/Analysis/ |
ProgramPoint.h | 119 ProgramPoint& PP = t; 120 PP = *this; 131 ProgramPoint& PP = t; 132 PP = *this;
|
/external/clang/lib/ARCMigrate/ |
TransformActions.cpp | 32 Preprocessor &PP; 68 CharRange(CharSourceRange range, SourceManager &srcMgr, Preprocessor &PP) { 73 End = FullSourceLoc(getLocForEndOfToken(endLoc, srcMgr, PP), srcMgr); 99 SourceManager &SrcMgr, Preprocessor &PP) { 100 return CharRange(CharSourceRange::getTokenRange(LHS), SrcMgr, PP) 102 SrcMgr, PP)); 123 ASTContext &ctx, Preprocessor &PP) 124 : CapturedDiags(capturedDiags), Ctx(ctx), PP(PP), IsInTransaction(false) { } 179 SourceManager &SM,Preprocessor &PP); [all...] |
/external/clang/lib/Lex/ |
Pragma.cpp | 42 void EmptyPragmaHandler::HandlePragma(Preprocessor &PP, 79 void PragmaNamespace::HandlePragma(Preprocessor &PP, 84 PP.LexUnexpandedToken(Tok); 92 PP.Diag(Tok, diag::warn_pragma_ignored); 97 Handler->HandlePragma(PP, Introducer, Tok); 129 Preprocessor &PP; 136 LexingFor_PragmaRAII(Preprocessor &PP, bool InMacroArgPreExpansion, 138 : PP(PP), InMacroArgPreExpansion(InMacroArgPreExpansion), 142 PP.EnableBacktrackAtThisPos() [all...] |