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

1234567

/freebsd-10.0-release/contrib/gcc/
H A Dpretty-print.h123 #define pp_line_cutoff(PP) pp_base (PP)->wrapping.line_cutoff
126 #define pp_prefixing_rule(PP) pp_base (PP)->wrapping.rule
129 #define pp_wrapping_mode(PP) pp_base (PP)->wrapping
139 #define pp_format_decoder(PP) pp_base (PP)->format_decoder
143 #define pp_needs_newline(PP) pp_base (PP)
[all...]
H A Dc-pretty-print.h97 #define pp_base(PP) (&pp_c_base (PP)->base)
107 #define pp_abstract_declarator(PP, D) \
108 pp_c_base (PP)->abstract_declarator (pp_c_base (PP), D)
115 #define pp_direct_abstract_declarator(PP, D) \
116 pp_c_base (PP)->direct_abstract_declarator (pp_c_base (PP), D)
117 #define pp_ptr_operator(PP, D) \
118 pp_c_base (PP)
[all...]
/freebsd-10.0-release/contrib/gcc/cp/
H A Dcxx-pretty-print.h28 #define pp_c_base(PP) (&(PP)->c_base)
44 #define pp_cxx_cv_qualifier_seq(PP, T) \
45 pp_c_type_qualifier_list (pp_c_base (PP), T)
47 #define pp_cxx_whitespace(PP) pp_c_whitespace (pp_c_base (PP))
48 #define pp_cxx_left_paren(PP) pp_c_left_paren (pp_c_base (PP))
49 #define pp_cxx_right_paren(PP) pp_c_right_paren (pp_c_base (PP))
[all...]
/freebsd-10.0-release/contrib/llvm/tools/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,
/freebsd-10.0-release/contrib/llvm/tools/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:__anon3165::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 DInclusionRewriter.cpp39 Preprocessor &PP; ///< Used to find inclusion directives. member in class:__anon3166::InclusionRewriter
50 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, argument
91 : PP(PP), SM(PP.getSourceManager()), OS(OS),
95 UseLineDirective = PP.getLangOpts().MicrosoftExt;
256 PP.LookUpIdentifierInfo(RawToken);
288 PP
473 RewriteIncludesInInput(Preprocessor &PP, raw_ostream *OS, const PreprocessorOutputOptions &Opts) argument
[all...]
/freebsd-10.0-release/contrib/llvm/tools/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
806 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...]
/freebsd-10.0-release/contrib/llvm/tools/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);
123 Preprocessor &PP; member in class:__anon3145::LexingFor_PragmaRAII
130 LexingFor_PragmaRAII(Preprocessor &PP, bool InMacroArgPreExpansion, argument
132 : PP(PP), InMacroArgPreExpansion(InMacroArgPreExpansion),
136 PP
807 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &OnceTok) argument
818 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &MarkTok) argument
827 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &PoisonTok) argument
837 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &SHToken) argument
845 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &DepToken) argument
853 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &DepToken) argument
893 HandleCaptured(Preprocessor &PP) argument
937 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &DiagToken) argument
1005 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &IncludeAliasTok) argument
1047 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &Tok) argument
1100 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &PushMacroTok) argument
1111 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &PopMacroTok) argument
1122 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &Tok) argument
1136 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &Tok) argument
1146 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &UnknownTok) argument
1157 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &NameTok) argument
1221 HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, Token &NameTok) 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);
107 PP.Diag(PeekTok, diag::err_pp_defined_requires_identifier);
118 Macro = PP
82 EvaluateDefined(PPValue &Result, Token &PeekTok, DefinedTracker &DT, bool ValueLive, Preprocessor &PP) argument
165 EvaluateValue(PPValue &Result, Token &PeekTok, DefinedTracker &DT, bool ValueLive, Preprocessor &PP) argument
452 EvaluateDirectiveSubExpr(PPValue &LHS, unsigned MinPrec, Token &PeekTok, bool ValueLive, Preprocessor &PP) argument
[all...]
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 DTokenLexer.cpp46 SourceManager &SM = PP.getSourceManager();
119 if (ActualArgs) ActualArgs->destroy(PP);
128 Preprocessor &PP) {
136 if (!HasPasteOperator && !PP.getLangOpts().MicrosoftMode)
144 if (PP.getLangOpts().C99 && !PP.getLangOpts().GNUMode
154 PP.Diag(ResultToks.back().getLocation(), diag::ext_paste_comma);
203 Res = ActualArgs->getStringifiedArgument(ArgNo, PP,
209 PP, true,
256 Macro, ArgNo, PP))
124 MaybeRemoveCommaBeforeVaArgs(SmallVector<Token, 128> &ResultToks, bool &NextTokGetsSpace, bool HasPasteOperator, MacroInfo *Macro, unsigned MacroArgNo, Preprocessor &PP) argument
[all...]
/freebsd-10.0-release/contrib/llvm/tools/clang/lib/Serialization/
H A DGeneratePCH.cpp27 PCHGenerator::PCHGenerator(const Preprocessor &PP, argument
32 : PP(PP), OutputFile(OutputFile), Module(Module),
41 if (PP.getDiagnostics().hasErrorOccurred())
/freebsd-10.0-release/contrib/llvm/tools/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,
/freebsd-10.0-release/contrib/llvm/tools/clang/include/clang/Frontend/
H A DUtils.h55 void InitializePreprocessor(Preprocessor &PP,
67 void DoPrintPreprocessedInput(Preprocessor &PP, raw_ostream* OS,
72 void AttachDependencyFileGen(Preprocessor &PP,
77 void AttachDependencyGraphGen(Preprocessor &PP, StringRef OutputFile,
89 void AttachHeaderIncludeGen(Preprocessor &PP, bool ShowAllHeaders = false,
95 void CacheTokens(Preprocessor &PP, llvm::raw_fd_ostream* OS);
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
/freebsd-10.0-release/contrib/llvm/tools/clang/lib/Frontend/
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 DDependencyGraph.cpp30 const Preprocessor *PP; member in class:__anon3122::DependencyGraphCallback
47 : 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));
83 SourceManager &SM = PP->getSourceManager();
106 PP->getDiagnostics().Report(diag::err_fe_error_opening)
H A DPrintPreprocessedOutput.cpp36 Preprocessor &PP, raw_ostream &OS) {
72 OS << PP.getSpelling(*I, SpellingBuffer);
82 Preprocessor &PP; member in class:__anon3128::PrintPPOutputPPCallbacks
102 : PP(pp), SM(PP.getSourceManager()),
103 ConcatInfo(PP), OS(os), DisableLineMarkers(lineMarkers),
114 UseLineDirective = PP.getLangOpts().MicrosoftExt;
371 PrintMacroDefinition(*MacroNameTok.getIdentifierInfo(), *MI, PP, OS);
561 virtual void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, argument
572 std::string TokSpell = PP
35 PrintMacroDefinition(const IdentifierInfo &II, const MacroInfo &MI, Preprocessor &PP, raw_ostream &OS) argument
582 PrintPreprocessedTokens(Preprocessor &PP, Token &Tok, PrintPPOutputPPCallbacks *Callbacks, raw_ostream &OS) argument
656 DoPrintMacros(Preprocessor &PP, raw_ostream *OS) argument
688 DoPrintPreprocessedInput(Preprocessor &PP, raw_ostream *OS, const PreprocessorOutputOptions &Opts) argument
[all...]
/freebsd-10.0-release/sys/netgraph/atm/
H A Dngatmbase.h53 #define uni_msg_unpack_mbuf(M, PP) \
54 _uni_msg_unpack_mbuf((M), (PP), __FILE__, __LINE__)

Completed in 179 milliseconds

1234567