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

123

/external/clang/lib/Rewrite/
H A DRewriteTest.cpp19 void clang::DoRewriteTest(Preprocessor &PP, raw_ostream* OS) { argument
20 SourceManager &SM = PP.getSourceManager();
21 const LangOptions &LangOpts = PP.getLangOptions();
38 *OS << PP.getSpelling(*I);
H A DHTMLPrint.cpp36 Preprocessor &PP; member in class:__anon2912::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
H A DHTMLRewrite.cpp358 void html::SyntaxHighlight(Rewriter &R, FileID FID, const Preprocessor &PP) { argument
361 const SourceManager &SM = PP.getSourceManager();
363 Lexer L(FID, FromFile, SM, PP.getLangOptions());
388 PP.LookUpIdentifierInfo(Tok);
447 void html::HighlightMacros(Rewriter &R, FileID FID, const Preprocessor& PP) { argument
449 const SourceManager &SM = PP.getSourceManager();
453 Lexer L(FID, FromFile, SM, PP.getLangOptions());
476 PP.LookUpIdentifierInfo(Tok);
485 DiagnosticsEngine TmpDiags(PP.getDiagnostics().getDiagnosticIDs(),
491 Preprocessor &TmpPP = const_cast<Preprocessor&>(PP);
[all...]
/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) {
118 : Macro(0), ActualArgs(0), PP(pp), OwnsTokens(false) {
H A DPreprocessorLexer.h28 Preprocessor *PP; // Preprocessor object controlling lexing. member in class:clang::PreprocessorLexer
58 /// Note that in raw mode that the PP pointer may be null.
76 : PP(0), InitialNumSLocEntries(0),
147 Preprocessor *getPP() const { return PP; }
150 assert(PP &&
H A DLiteralSupport.h39 Preprocessor &PP; // needed for diagnostics member in class:clang::NumericLiteralParser
52 SourceLocation Loc, Preprocessor &PP);
133 SourceLocation Loc, Preprocessor &PP,
162 Preprocessor &PP, bool Complain = true);
/external/clang/lib/Parse/
H A DParseAST.cpp38 void clang::ParseAST(Preprocessor &PP, ASTConsumer *Consumer, argument
43 llvm::OwningPtr<Sema> S(new Sema(PP, Ctx, *Consumer,
H A DParseInit.cpp27 static bool MayBeDesignationStart(tok::TokenKind K, Preprocessor &PP) { argument
34 return PP.LookAhead(0).is(tok::colon);
348 if (MayBeDesignationStart(Tok.getKind(), PP))
H A DParsePragma.cpp35 void PragmaGCCVisibilityHandler::HandlePragma(Preprocessor &PP, argument
41 PP.LexUnexpandedToken(Tok);
52 PP.LexUnexpandedToken(Tok);
54 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_lparen)
58 PP.LexUnexpandedToken(Tok);
61 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_identifier)
65 PP.LexUnexpandedToken(Tok);
67 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_rparen)
72 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_identifier)
76 PP
90 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &PackTok) argument
182 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &MSStructTok) argument
214 ParseAlignPragma(Sema &Actions, Preprocessor &PP, Token &FirstTok, bool IsOptions) argument
272 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &AlignTok) argument
278 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &OptionsTok) argument
285 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &UnusedTok) argument
364 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &WeakTok) argument
407 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &Tok) argument
418 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &Tok) argument
[all...]
/external/clang/lib/Serialization/
H A DGeneratePCH.cpp29 PCHGenerator::PCHGenerator(const Preprocessor &PP, argument
34 : PP(PP), OutputFile(OutputFile), IsModule(IsModule),
40 PP.getFileManager().addStatCache(StatCalls, /*AtBeginning=*/false);
47 if (PP.getDiagnostics().hasErrorOccurred())
H A DChainedIncludesSource.cpp33 Preprocessor &PP = CI.getPreprocessor(); local
35 Reader.reset(new ASTReader(PP, CI.getASTContext(), /*isysroot=*/"",
45 PP.setPredefines(Reader->getSuggestedPredefines());
116 Preprocessor &PP = Clang->getPreprocessor(); local
117 PP.getBuiltinInfo().InitializeBuiltins(PP.getIdentifierTable(),
118 PP.getLangOptions());
/external/clang/include/clang/Frontend/
H A DChainedDiagnosticConsumer.h35 const Preprocessor *PP) {
36 Primary->BeginSourceFile(LO, PP);
37 Secondary->BeginSourceFile(LO, PP);
34 BeginSourceFile(const LangOptions &LO, const Preprocessor *PP) argument
H A DLogDiagnosticPrinter.h65 void BeginSourceFile(const LangOptions &LO, const Preprocessor *PP) { argument
/external/clang/lib/Frontend/
H A DFrontendActions.cpp126 Preprocessor &PP = getCompilerInstance().getPreprocessor(); local
127 SourceManager &SM = PP.getSourceManager();
131 Lexer RawLex(SM.getMainFileID(), FromFile, SM, PP.getLangOptions());
137 PP.DumpToken(RawTok, true);
144 Preprocessor &PP = getCompilerInstance().getPreprocessor(); local
147 PP.EnterMainSourceFile();
149 PP.Lex(Tok);
150 PP.DumpToken(Tok, true);
171 Preprocessor &PP = getCompilerInstance().getPreprocessor(); local
174 PP
[all...]
H A DHeaderIncludeGen.cpp28 HeaderIncludesCallback(const Preprocessor *PP, bool ShowAllHeaders_, argument
31 : SM(PP->getSourceManager()), OutputFile(OutputFile_),
47 void clang::AttachHeaderIncludeGen(Preprocessor &PP, bool ShowAllHeaders, argument
58 PP.getDiagnostics().Report(
69 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:__anon2886::DependencyFileCallback
49 : PP(_PP), Targets(Opts.Targets), OS(_OS),
74 void clang::AttachDependencyFileGen(Preprocessor &PP, argument
77 PP.getDiagnostics().Report(diag::err_fe_dependency_file_requires_MT);
84 PP.getDiagnostics().Report(diag::err_fe_error_opening)
91 PP.SetSuppressIncludeNotFoundError(true);
93 PP.addPPCallbacks(new DependencyFileCallback(&PP, OS, Opts));
119 SourceManager &SM = PP->getSourceManager();
H A DFrontendAction.cpp253 Preprocessor &PP = CI.getPreprocessor(); local
254 PP.getBuiltinInfo().InitializeBuiltins(PP.getIdentifierTable(),
255 PP.getLangOptions());
/external/clang/lib/StaticAnalyzer/Core/
H A DTextPathDiagnostics.cpp52 const Preprocessor &PP) {
53 return new TextPathDiagnostics(out, PP.getDiagnostics());
51 createTextPathDiagnosticConsumer(const std::string& out, const Preprocessor &PP) argument
/external/clang/lib/Lex/
H A DTokenConcatenation.cpp48 const LangOptions &LangOpts = PP.getLangOptions();
53 SourceManager &SM = PP.getSourceManager();
62 unsigned length = PP.getSpelling(Tok, TokPtr);
66 return IsStringPrefix(StringRef(PP.getSpelling(Tok)), LangOpts.CPlusPlus0x);
69 TokenConcatenation::TokenConcatenation(Preprocessor &pp) : PP(pp) {
107 static char GetFirstChar(Preprocessor &PP, const Token &Tok) { argument
115 SourceManager &SM = PP.getSourceManager();
121 PP.getSpelling(Tok, TokPtr);
124 return PP.getSpelling(Tok)[0];
176 FirstChar = GetFirstChar(PP, To
[all...]
H A DMacroArgs.cpp26 bool VarargsElided, Preprocessor &PP) {
34 for (MacroArgs **Entry = &PP.MacroArgCache; *Entry;
72 void MacroArgs::destroy(Preprocessor &PP) { argument
81 ArgCache = PP.MacroArgCache;
82 PP.MacroArgCache = this;
131 Preprocessor &PP) const {
136 if (II->hasMacroDefinition() && PP.getMacroInfo(II)->isEnabled())
148 Preprocessor &PP) {
165 PP.EnterTokenStream(AT, NumToks, false /*disable expand*/,
172 PP
24 create(const MacroInfo *MI, llvm::ArrayRef<Token> UnexpArgTokens, bool VarargsElided, Preprocessor &PP) argument
147 getPreExpArgument(unsigned Arg, const MacroInfo *MI, Preprocessor &PP) argument
190 StringifyArgument(const Token *ArgToks, Preprocessor &PP, bool Charify, SourceLocation ExpansionLocStart, SourceLocation ExpansionLocEnd) argument
296 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
431 EvaluateDirectiveSubExpr(PPValue &LHS, unsigned MinPrec, Token &PeekTok, bool ValueLive, Preprocessor &PP) argument
[all...]
/external/clang/lib/StaticAnalyzer/Checkers/
H A DUndefBranchChecker.cpp65 // TODO: The PP will be generated with the correct tag by the CheckerManager
68 ProgramPoint PP = PostCondition(Condition, Pred->getLocationContext(), Tag); local
71 ExplodedNode *N = Builder.generateNode(PP, state,

Completed in 520 milliseconds

123