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

123

/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:__anon147::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
124 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
103 : Macro(0), ActualArgs(0), PP(pp), OwnsTokens(false) {
119 : Macro(0), ActualArgs(0), PP(pp), OwnsTokens(false) {
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(0), InitialNumSLocEntries(0),
151 Preprocessor *getPP() const { return PP; }
154 assert(PP &&
/external/clang/lib/Serialization/
H A DGeneratePCH.cpp28 PCHGenerator::PCHGenerator(const Preprocessor &PP, argument
33 : PP(PP), OutputFile(OutputFile), Module(Module),
39 PP.getFileManager().addStatCache(StatCalls, /*AtBeginning=*/false);
46 if (PP.getDiagnostics().hasErrorOccurred())
/external/clang/lib/Parse/
H A DParseAST.cpp40 void clang::ParseAST(Preprocessor &PP, ASTConsumer *Consumer, argument
46 OwningPtr<Sema> S(new Sema(PP, Ctx, *Consumer,
H A DParsePragma.cpp60 void PragmaGCCVisibilityHandler::HandlePragma(Preprocessor &PP, argument
66 PP.LexUnexpandedToken(Tok);
74 PP.LexUnexpandedToken(Tok);
76 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_lparen)
80 PP.LexUnexpandedToken(Tok);
83 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_identifier)
87 PP.LexUnexpandedToken(Tok);
89 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_rparen)
94 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_identifier)
98 PP
119 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &PackTok) argument
240 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &MSStructTok) argument
273 ParseAlignPragma(Sema &Actions, Preprocessor &PP, Token &FirstTok, bool IsOptions) argument
331 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &AlignTok) argument
337 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &OptionsTok) argument
344 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &UnusedTok) argument
426 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &WeakTok) argument
469 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &RedefToken) argument
507 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &Tok) argument
518 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &Tok) argument
[all...]
/external/clang/include/clang/Frontend/
H A DChainedDiagnosticConsumer.h36 const Preprocessor *PP) {
37 Primary->BeginSourceFile(LO, PP);
38 Secondary->BeginSourceFile(LO, PP);
35 BeginSourceFile(const LangOptions &LO, const Preprocessor *PP) argument
H A DLogDiagnosticPrinter.h65 void BeginSourceFile(const LangOptions &LO, const Preprocessor *PP) { argument
/external/clang/lib/StaticAnalyzer/Core/
H A DTextPathDiagnostics.cpp51 const Preprocessor &PP) {
52 C.push_back(new TextPathDiagnostics(out, PP.getDiagnostics()));
49 createTextPathDiagnosticConsumer(PathDiagnosticConsumers &C, const std::string& out, const Preprocessor &PP) argument
/external/clang/lib/Frontend/
H A DDependencyGraph.cpp30 const Preprocessor *PP; member in class:__anon108::DependencyGraphCallback
48 : PP(_PP), OutputFile(OutputFile.str()), SysRoot(SysRoot.str()) { }
66 void clang::AttachDependencyGraphGen(Preprocessor &PP, StringRef OutputFile, argument
68 PP.addPPCallbacks(new DependencyGraphCallback(&PP, OutputFile, SysRoot));
82 SourceManager &SM = PP->getSourceManager();
105 PP->getDiagnostics().Report(diag::err_fe_error_opening)
H A DHeaderIncludeGen.cpp29 HeaderIncludesCallback(const Preprocessor *PP, bool ShowAllHeaders_, argument
32 : SM(PP->getSourceManager()), OutputFile(OutputFile_),
48 void clang::AttachHeaderIncludeGen(Preprocessor &PP, bool ShowAllHeaders, argument
59 PP.getDiagnostics().Report(
70 PP.addPPCallbacks(new HeaderIncludesCallback(&PP, ShowAllHeaders,
H A DTextDiagnosticPrinter.cpp40 const Preprocessor *PP) {
39 BeginSourceFile(const LangOptions &LO, const Preprocessor *PP) argument
H A DDependencyFile.cpp33 const Preprocessor *PP; member in class:__anon107::DependencyFileCallback
49 : PP(_PP), OutputFile(Opts.OutputFile), Targets(Opts.Targets),
73 void clang::AttachDependencyFileGen(Preprocessor &PP, argument
76 PP.getDiagnostics().Report(diag::err_fe_dependency_file_requires_MT);
82 PP.SetSuppressIncludeNotFoundError(true);
84 PP.addPPCallbacks(new DependencyFileCallback(&PP, Opts));
110 SourceManager &SM = PP->getSourceManager();
171 PP->getDiagnostics().Report(diag::err_fe_error_opening)
H A DChainedIncludesSource.cpp33 Preprocessor &PP = CI.getPreprocessor(); local
35 Reader.reset(new ASTReader(PP, CI.getASTContext(), /*isysroot=*/"",
45 PP.setPredefines(Reader->getSuggestedPredefines());
117 Preprocessor &PP = Clang->getPreprocessor(); local
118 PP.getBuiltinInfo().InitializeBuiltins(PP.getIdentifierTable(),
119 PP.getLangOpts());
H A DFrontendAction.cpp288 Preprocessor &PP = CI.getPreprocessor(); local
289 PP.getBuiltinInfo().InitializeBuiltins(PP.getIdentifierTable(),
290 PP.getLangOpts());
H A DFrontendActions.cpp367 Preprocessor &PP = getCompilerInstance().getPreprocessor(); local
368 SourceManager &SM = PP.getSourceManager();
372 Lexer RawLex(SM.getMainFileID(), FromFile, SM, PP.getLangOpts());
378 PP.DumpToken(RawTok, true);
385 Preprocessor &PP = getCompilerInstance().getPreprocessor(); local
388 PP.EnterMainSourceFile();
390 PP.Lex(Tok);
391 PP.DumpToken(Tok, true);
412 Preprocessor &PP = getCompilerInstance().getPreprocessor(); local
415 PP
[all...]
/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.CPlusPlus0x);
70 TokenConcatenation::TokenConcatenation(Preprocessor &pp) : PP(pp) {
90 if (PP.getLangOpts().CPlusPlus0x) {
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, llvm::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
301 getStringifiedArgument(unsigned ArgNo, Preprocessor &PP, SourceLocation ExpansionLocStart, SourceLocation ExpansionLocEnd) argument
[all...]
H A DPPExpressions.cpp58 Preprocessor &PP);
82 bool ValueLive, Preprocessor &PP) {
87 PP.LexUnexpandedNonComment(PeekTok);
94 PP.LexUnexpandedNonComment(PeekTok);
98 if (PP.getCodeCompletionHandler())
99 PP.getCodeCompletionHandler()->CodeCompleteMacroName(false);
100 PP.setCodeCompletionReached();
101 PP.LexUnexpandedNonComment(PeekTok);
106 PP.Diag(PeekTok, diag::err_pp_defined_requires_identifier);
116 MacroInfo *Macro = PP
81 EvaluateDefined(PPValue &Result, Token &PeekTok, DefinedTracker &DT, bool ValueLive, Preprocessor &PP) argument
158 EvaluateValue(PPValue &Result, Token &PeekTok, DefinedTracker &DT, bool ValueLive, Preprocessor &PP) argument
439 EvaluateDirectiveSubExpr(PPValue &LHS, unsigned MinPrec, Token &PeekTok, bool ValueLive, Preprocessor &PP) argument
[all...]
/external/clang/include/clang/Sema/
H A DIdentifierResolver.h191 explicit IdentifierResolver(Preprocessor &PP);
196 Preprocessor &PP; member in class:clang::IdentifierResolver
/external/clang/unittests/Tooling/
H A DCommentHandlerTest.cpp31 CommentHandlerVisitor() : base(), PP(0), 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/Rewrite/Core/
H A DHTMLRewrite.cpp359 void html::SyntaxHighlight(Rewriter &R, FileID FID, const Preprocessor &PP) { argument
362 const SourceManager &SM = PP.getSourceManager();
364 Lexer L(FID, FromFile, SM, PP.getLangOpts());
388 PP.LookUpIdentifierInfo(Tok);
448 void html::HighlightMacros(Rewriter &R, FileID FID, const Preprocessor& PP) { argument
450 const SourceManager &SM = PP.getSourceManager();
454 Lexer L(FID, FromFile, SM, PP.getLangOpts());
477 PP.LookUpIdentifierInfo(Tok);
486 DiagnosticsEngine TmpDiags(PP.getDiagnostics().getDiagnosticIDs(),
492 Preprocessor &TmpPP = const_cast<Preprocessor&>(PP);
[all...]

Completed in 211 milliseconds

123