Searched refs:PP (Results 1 - 25 of 174) sorted by relevance

1234567

/external/clang/include/clang/Rewrite/Frontend/
H A DRewriters.h24 void RewriteMacrosInInput(Preprocessor &PP, raw_ostream *OS);
27 void DoRewriteTest(Preprocessor &PP, raw_ostream *OS);
30 void RewriteIncludesInInput(Preprocessor &PP, raw_ostream *OS,
/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 DRewriteMacros.cpp62 static void LexRawTokensFromMainFile(Preprocessor &PP,
64 SourceManager &SM = PP.getSourceManager();
69 Lexer RawLex(SM.getMainFileID(), FromFile, SM, PP.getLangOpts());
82 PP.LookUpIdentifierInfo(RawTok);
90 void clang::RewriteMacrosInInput(Preprocessor &PP, raw_ostream *OS) {
91 SourceManager &SM = PP.getSourceManager();
94 Rewrite.setSourceMgr(SM, PP.getLangOpts());
98 LexRawTokensFromMainFile(PP, RawTokens);
104 PP.EnterMainSourceFile();
106 PP
[all...]
H A DHTMLPrint.cpp36 Preprocessor &PP; member in class:__anon15314::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/lib/Parse/
H A DParsePragma.cpp133 PP.Diag(Tok, diag::err_expected_lbrace);
178 PP.Diag(NameLoc, diag::warn_pragma_unknown_extension) << ename;
188 void PragmaGCCVisibilityHandler::HandlePragma(Preprocessor &PP, argument
194 PP.LexUnexpandedToken(Tok);
202 PP.LexUnexpandedToken(Tok);
204 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_lparen)
208 PP.LexUnexpandedToken(Tok);
211 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_identifier)
215 PP.LexUnexpandedToken(Tok);
217 PP
247 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &PackTok) argument
363 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &MSStructTok) argument
407 ParseAlignPragma(Preprocessor &PP, Token &FirstTok, bool IsOptions) argument
474 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &AlignTok) argument
480 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &OptionsTok) argument
487 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &UnusedTok) argument
569 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &WeakTok) argument
630 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &RedefToken) argument
676 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &Tok) argument
697 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &Tok) argument
755 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &FirstTok) argument
772 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &FirstTok) argument
807 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &Tok) argument
863 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &Tok) argument
[all...]
H A DParsePragma.h27 virtual void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer,
35 virtual void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer,
43 virtual void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer,
51 virtual void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer,
59 virtual void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer,
67 virtual void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer,
75 virtual void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer,
83 virtual void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer,
90 virtual void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer,
98 virtual void HandlePragma(Preprocessor &PP, PragmaIntroducerKin
[all...]
/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/lib/Lex/
H A DPreprocessorLexer.cpp23 : PP(pp), FID(fid), InitialNumSLocEntries(0),
48 PP->Diag(FilenameTok.getLocation(), diag::err_pp_expects_filename);
54 return PP->getSourceManager().getFileEntryForID(getFileID());
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 DPragma.cpp38 void EmptyPragmaHandler::HandlePragma(Preprocessor &PP, argument
77 void PragmaNamespace::HandlePragma(Preprocessor &PP, argument
82 PP.LexUnexpandedToken(Tok);
90 PP.Diag(Tok, diag::warn_pragma_ignored);
95 Handler->HandlePragma(PP, Introducer, Tok);
127 Preprocessor &PP; member in class:__anon15294::LexingFor_PragmaRAII
134 LexingFor_PragmaRAII(Preprocessor &PP, bool InMacroArgPreExpansion, argument
136 : PP(PP), InMacroArgPreExpansion(InMacroArgPreExpansion),
140 PP
811 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &OnceTok) argument
822 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &MarkTok) argument
831 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &PoisonTok) argument
841 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &SHToken) argument
849 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &DepToken) argument
857 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &DepToken) argument
897 HandleCaptured(Preprocessor &PP) argument
941 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &DiagToken) argument
1009 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &IncludeAliasTok) argument
1051 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &Tok) argument
1104 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &PushMacroTok) argument
1115 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &PopMacroTok) argument
1126 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &Tok) argument
1140 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &Tok) argument
1150 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &UnknownTok) argument
1161 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &NameTok) argument
1225 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &NameTok) argument
[all...]
H A DPPExpressions.cpp59 Preprocessor &PP);
83 bool ValueLive, Preprocessor &PP) {
89 PP.LexUnexpandedNonComment(PeekTok);
96 PP.LexUnexpandedNonComment(PeekTok);
100 if (PP.getCodeCompletionHandler())
101 PP.getCodeCompletionHandler()->CodeCompleteMacroName(false);
102 PP.setCodeCompletionReached();
103 PP.LexUnexpandedNonComment(PeekTok);
108 PP.Diag(PeekTok, diag::err_pp_defined_requires_identifier);
119 Macro = PP
82 EvaluateDefined(PPValue &Result, Token &PeekTok, DefinedTracker &DT, bool ValueLive, Preprocessor &PP) argument
170 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/chromium_org/third_party/JSON/JSON-2.59/blib/lib/JSON/backportPP/
H A DCompat5005.pm30 *JSON::PP::JSON_PP_encode_ascii = \&_encode_ascii;
31 *JSON::PP::JSON_PP_encode_latin1 = \&_encode_latin1;
32 *JSON::PP::JSON_PP_decode_surrogates = \&_decode_surrogates;
33 *JSON::PP::JSON_PP_decode_unicode = \&_decode_unicode;
93 sub JSON::PP::incr_text {
94 $_[0]->{_incr_parser} ||= JSON::PP::IncrParser->new;
112 JSON::PP5005 - Helper module in using JSON::PP in Perl 5.005
116 JSON::PP calls internally.
H A DBoolean.pm3 JSON::PP::Boolean - dummy module providing JSON::PP::Boolean
12 and similar modules. See L<JSON::PP> for more info about this class.
H A DCompat5006.pm69 *JSON::PP::JSON_PP_encode_ascii = \&_encode_ascii;
70 *JSON::PP::JSON_PP_encode_latin1 = \&_encode_latin1;
71 *JSON::PP::JSON_PP_decode_surrogates = \&JSON::PP::_decode_surrogates;
72 *JSON::PP::JSON_PP_decode_unicode = \&JSON::PP::_decode_unicode;
88 sprintf('\u%04x', $_) : sprintf('\u%x\u%x', JSON::PP::_encode_surrogates($_));
100 sprintf('\u%04x', $_) : sprintf('\u%x\u%x', JSON::PP::_encode_surrogates($_));
154 JSON::PP56 - Helper module in using JSON::PP in Perl 5.6
158 JSON::PP call
[all...]
/external/chromium_org/third_party/JSON/JSON-2.59/lib/JSON/backportPP/
H A DCompat5005.pm30 *JSON::PP::JSON_PP_encode_ascii = \&_encode_ascii;
31 *JSON::PP::JSON_PP_encode_latin1 = \&_encode_latin1;
32 *JSON::PP::JSON_PP_decode_surrogates = \&_decode_surrogates;
33 *JSON::PP::JSON_PP_decode_unicode = \&_decode_unicode;
93 sub JSON::PP::incr_text {
94 $_[0]->{_incr_parser} ||= JSON::PP::IncrParser->new;
112 JSON::PP5005 - Helper module in using JSON::PP in Perl 5.005
116 JSON::PP calls internally.
H A DBoolean.pm3 JSON::PP::Boolean - dummy module providing JSON::PP::Boolean
12 and similar modules. See L<JSON::PP> for more info about this class.
H A DCompat5006.pm69 *JSON::PP::JSON_PP_encode_ascii = \&_encode_ascii;
70 *JSON::PP::JSON_PP_encode_latin1 = \&_encode_latin1;
71 *JSON::PP::JSON_PP_decode_surrogates = \&JSON::PP::_decode_surrogates;
72 *JSON::PP::JSON_PP_decode_unicode = \&JSON::PP::_decode_unicode;
88 sprintf('\u%04x', $_) : sprintf('\u%x\u%x', JSON::PP::_encode_surrogates($_));
100 sprintf('\u%04x', $_) : sprintf('\u%x\u%x', JSON::PP::_encode_surrogates($_));
154 JSON::PP56 - Helper module in using JSON::PP in Perl 5.6
158 JSON::PP call
[all...]
/external/chromium_org/third_party/JSON/out/lib/perl5/JSON/backportPP/
H A DCompat5005.pm30 *JSON::PP::JSON_PP_encode_ascii = \&_encode_ascii;
31 *JSON::PP::JSON_PP_encode_latin1 = \&_encode_latin1;
32 *JSON::PP::JSON_PP_decode_surrogates = \&_decode_surrogates;
33 *JSON::PP::JSON_PP_decode_unicode = \&_decode_unicode;
93 sub JSON::PP::incr_text {
94 $_[0]->{_incr_parser} ||= JSON::PP::IncrParser->new;
112 JSON::PP5005 - Helper module in using JSON::PP in Perl 5.005
116 JSON::PP calls internally.
H A DBoolean.pm3 JSON::PP::Boolean - dummy module providing JSON::PP::Boolean
12 and similar modules. See L<JSON::PP> for more info about this class.
H A DCompat5006.pm69 *JSON::PP::JSON_PP_encode_ascii = \&_encode_ascii;
70 *JSON::PP::JSON_PP_encode_latin1 = \&_encode_latin1;
71 *JSON::PP::JSON_PP_decode_surrogates = \&JSON::PP::_decode_surrogates;
72 *JSON::PP::JSON_PP_decode_unicode = \&JSON::PP::_decode_unicode;
88 sprintf('\u%04x', $_) : sprintf('\u%x\u%x', JSON::PP::_encode_surrogates($_));
100 sprintf('\u%04x', $_) : sprintf('\u%x\u%x', JSON::PP::_encode_surrogates($_));
154 JSON::PP56 - Helper module in using JSON::PP in Perl 5.6
158 JSON::PP call
[all...]
/external/clang/include/clang/Lex/
H A DTokenConcatenation.h32 Preprocessor &PP; member in class:clang::TokenConcatenation
59 TokenConcatenation(Preprocessor &PP);
H A DMacroArgs.h64 bool VarargsElided, Preprocessor &PP);
68 void destroy(Preprocessor &PP);
72 bool ArgNeedsPreexpansion(const Token *ArgTok, Preprocessor &PP) const;
87 getPreExpArgument(unsigned Arg, const MacroInfo *MI, Preprocessor &PP);
91 const Token &getStringifiedArgument(unsigned ArgNo, Preprocessor &PP,
113 Preprocessor &PP, bool Charify,
/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/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 DUtils.h60 void InitializePreprocessor(Preprocessor &PP,
72 void DoPrintPreprocessedInput(Preprocessor &PP, raw_ostream* OS,
77 void AttachDependencyFileGen(Preprocessor &PP,
82 void AttachDependencyGraphGen(Preprocessor &PP, StringRef OutputFile,
94 void AttachHeaderIncludeGen(Preprocessor &PP, bool ShowAllHeaders = false,
100 void CacheTokens(Preprocessor &PP, llvm::raw_fd_ostream* OS);

Completed in 1300 milliseconds

1234567