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

1234

/external/clang/lib/Rewrite/Frontend/
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:__anon17970::HTMLPrinter
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);
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.h65 /// PP - The Preprocessor object that will use this PTHManager to create
67 Preprocessor* PP; member in class:clang::PTHManager
123 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 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 DCommentSema.h47 const Preprocessor *PP; member in class:clang::comments::Sema
75 const Preprocessor *PP);
/external/clang/lib/Frontend/
H A DDependencyGraph.cpp30 const Preprocessor *PP; member in class:__anon17920::DependencyGraphCallback
47 : PP(_PP), OutputFile(OutputFile.str()), SysRoot(SysRoot.str()) { }
62 void clang::AttachDependencyGraphGen(Preprocessor &PP, StringRef OutputFile, argument
64 PP.addPPCallbacks(new DependencyGraphCallback(&PP, OutputFile, SysRoot));
79 SourceManager &SM = PP->getSourceManager();
102 PP->getDiagnostics().Report(diag::err_fe_error_opening)
H A DTextDiagnosticPrinter.cpp40 const Preprocessor *PP) {
39 BeginSourceFile(const LangOptions &LO, const Preprocessor *PP) argument
H A DHeaderIncludeGen.cpp30 HeaderIncludesCallback(const Preprocessor *PP, bool ShowAllHeaders_, argument
33 : SM(PP->getSourceManager()), OutputFile(OutputFile_),
49 void clang::AttachHeaderIncludeGen(Preprocessor &PP, bool ShowAllHeaders, argument
62 PP.getDiagnostics().Report(
73 PP.addPPCallbacks(new HeaderIncludesCallback(&PP, ShowAllHeaders,
H A DChainedIncludesSource.cpp80 Preprocessor &PP = CI.getPreprocessor(); local
82 Reader.reset(new ASTReader(PP, CI.getASTContext(), /*isysroot=*/"",
93 PP.setPredefines(Reader->getSuggestedPredefines());
170 Preprocessor &PP = Clang->getPreprocessor(); local
171 PP.getBuiltinInfo().InitializeBuiltins(PP.getIdentifierTable(),
172 PP.getLangOpts());
H A DFrontendAction.cpp358 Preprocessor &PP = CI.getPreprocessor(); local
366 PP.getBuiltinInfo().InitializeBuiltins(PP.getIdentifierTable(),
367 PP.getLangOpts());
H A DFrontendActions.cpp548 Preprocessor &PP = getCompilerInstance().getPreprocessor(); local
549 SourceManager &SM = PP.getSourceManager();
553 Lexer RawLex(SM.getMainFileID(), FromFile, SM, PP.getLangOpts());
559 PP.DumpToken(RawTok, true);
566 Preprocessor &PP = getCompilerInstance().getPreprocessor(); local
569 PP.EnterMainSourceFile();
571 PP.Lex(Tok);
572 PP.DumpToken(Tok, true);
593 Preprocessor &PP = getCompilerInstance().getPreprocessor(); local
596 PP
[all...]
/external/clang/lib/Lex/
H A DMacroInfo.cpp72 bool MacroInfo::isIdenticalTo(const MacroInfo &Other, Preprocessor &PP, argument
122 if (PP.getSpelling(A) != PP.getSpelling(B))
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) {
121 static char GetFirstChar(Preprocessor &PP, const Token &Tok) { argument
129 SourceManager &SM = PP.getSourceManager();
135 PP.getSpelling(Tok, TokPtr);
138 return 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 {
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
297 getStringifiedArgument(unsigned ArgNo, Preprocessor &PP, SourceLocation ExpansionLocStart, SourceLocation ExpansionLocEnd) argument
[all...]
H A DPPExpressions.cpp59 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, 0))
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
457 EvaluateDirectiveSubExpr(PPValue &LHS, unsigned MinPrec, Token &PeekTok, bool ValueLive, Preprocessor &PP) argument
[all...]
/external/clang/lib/Parse/
H A DParseAST.cpp56 const Preprocessor &PP = P.getPreprocessor(); local
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, argument
92 new Sema(PP, Ctx, *Consumer, TUKind, CompletionConsumer));
/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 virtual bool HandleComment(Preprocessor &PP, SourceRange Loc) { argument
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.cpp144 const Preprocessor *PP,
156 PP);
143 parse(const ASTContext &Context, const Preprocessor *PP, const Decl *D) const argument
/external/clang/lib/Rewrite/Core/
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),
368 PP.getExternalSource()->updateOutOfDateIdentifier(II);
373 PP.getExternalSource()->updateOutOfDateIdentifier(II);
/external/clang/lib/StaticAnalyzer/Core/
H A DPlistDiagnostics.cpp70 const Preprocessor &PP) {
72 PP.getLangOpts(), false));
78 const Preprocessor &PP) {
80 PP.getLangOpts(), true));
67 createPlistDiagnosticConsumer(AnalyzerOptions &AnalyzerOpts, PathDiagnosticConsumers &C, const std::string& s, const Preprocessor &PP) argument
75 createPlistMultiFileDiagnosticConsumer(AnalyzerOptions &AnalyzerOpts, PathDiagnosticConsumers &C, const std::string &s, const Preprocessor &PP) argument

Completed in 362 milliseconds

1234