Home
last modified time | relevance | path

Searched refs:PP (Results 1 – 25 of 227) sorted by relevance

12345678910

/trueos/contrib/gcc/
HDpretty-print.h123 #define pp_line_cutoff(PP) pp_base (PP)->wrapping.line_cutoff argument
126 #define pp_prefixing_rule(PP) pp_base (PP)->wrapping.rule argument
129 #define pp_wrapping_mode(PP) pp_base (PP)->wrapping argument
139 #define pp_format_decoder(PP) pp_base (PP)->format_decoder argument
143 #define pp_needs_newline(PP) pp_base (PP)->need_newline argument
146 #define pp_is_wrapping_line(PP) (pp_line_cutoff (PP) > 0) argument
149 #define pp_indentation(PP) pp_base (PP)->indent_skip argument
192 #define pp_set_line_maximum_length(PP, L) \ argument
193 pp_base_set_line_maximum_length (pp_base (PP), L)
194 #define pp_set_prefix(PP, P) pp_base_set_prefix (pp_base (PP), P) argument
[all …]
HDc-pretty-print.h97 #define pp_base(PP) (&pp_c_base (PP)->base) argument
107 #define pp_abstract_declarator(PP, D) \ argument
108 pp_c_base (PP)->abstract_declarator (pp_c_base (PP), D)
115 #define pp_direct_abstract_declarator(PP, D) \ argument
116 pp_c_base (PP)->direct_abstract_declarator (pp_c_base (PP), D)
117 #define pp_ptr_operator(PP, D) \ argument
118 pp_c_base (PP)->ptr_operator (pp_c_base (PP), D)
123 #define pp_simple_type_specifier(PP, T) \ argument
124 pp_c_base (PP)->simple_type_specifier (pp_c_base (PP), T)
125 #define pp_function_specifier(PP, D) \ argument
[all …]
/trueos/contrib/gcc/cp/
HDcxx-pretty-print.h28 #define pp_c_base(PP) (&(PP)->c_base) argument
44 #define pp_cxx_cv_qualifier_seq(PP, T) \ argument
45 pp_c_type_qualifier_list (pp_c_base (PP), T)
47 #define pp_cxx_whitespace(PP) pp_c_whitespace (pp_c_base (PP)) argument
48 #define pp_cxx_left_paren(PP) pp_c_left_paren (pp_c_base (PP)) argument
49 #define pp_cxx_right_paren(PP) pp_c_right_paren (pp_c_base (PP)) argument
50 #define pp_cxx_left_brace(PP) pp_c_left_brace (pp_c_base (PP)) argument
51 #define pp_cxx_right_brace(PP) pp_c_right_brace (pp_c_base (PP)) argument
52 #define pp_cxx_left_bracket(PP) pp_c_left_bracket (pp_c_base (PP)) argument
53 #define pp_cxx_right_bracket(PP) pp_c_right_bracket (pp_c_base (PP)) argument
[all …]
/trueos/contrib/llvm/lib/ExecutionEngine/
HDRTDyldMemoryManager.cpp154 #define ARM_MATH_IMPORTS(PP) \ argument
155 PP(__aeabi_d2f) \
156 PP(__aeabi_d2iz) \
157 PP(__aeabi_d2lz) \
158 PP(__aeabi_d2uiz) \
159 PP(__aeabi_d2ulz) \
160 PP(__aeabi_dadd) \
161 PP(__aeabi_dcmpeq) \
162 PP(__aeabi_dcmpge) \
163 PP(__aeabi_dcmpgt) \
[all …]
/trueos/contrib/llvm/tools/clang/lib/Parse/
HDParsePragma.cpp133 PP.Diag(Tok, diag::err_expected_lbrace); in HandlePragmaCaptured()
178 PP.Diag(NameLoc, diag::warn_pragma_unknown_extension) << ename; in HandlePragmaOpenCLExtension()
188 void PragmaGCCVisibilityHandler::HandlePragma(Preprocessor &PP, in HandlePragma() argument
194 PP.LexUnexpandedToken(Tok); in HandlePragma()
202 PP.LexUnexpandedToken(Tok); in HandlePragma()
204 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_lparen) in HandlePragma()
208 PP.LexUnexpandedToken(Tok); in HandlePragma()
211 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_identifier) in HandlePragma()
215 PP.LexUnexpandedToken(Tok); in HandlePragma()
217 PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_rparen) in HandlePragma()
[all …]
HDParsePragma.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, PragmaIntroducerKind Introducer,
[all …]
HDParser.cpp36 virtual bool HandleComment(Preprocessor &PP, SourceRange Comment) { in HandleComment() argument
46 Ident__except = PP.getIdentifierInfo("__except"); in getSEHExceptKeyword()
52 : PP(pp), Actions(actions), Diags(PP.getDiagnostics()), in Parser()
67 PP.AddPragmaHandler(AlignHandler.get()); in Parser()
70 PP.AddPragmaHandler("GCC", GCCVisibilityHandler.get()); in Parser()
73 PP.AddPragmaHandler(OptionsHandler.get()); in Parser()
76 PP.AddPragmaHandler(PackHandler.get()); in Parser()
79 PP.AddPragmaHandler(MSStructHandler.get()); in Parser()
82 PP.AddPragmaHandler(UnusedHandler.get()); in Parser()
85 PP.AddPragmaHandler(WeakHandler.get()); in Parser()
[all …]
/trueos/contrib/llvm/tools/clang/lib/Lex/
HDPPExpressions.cpp59 Preprocessor &PP);
83 bool ValueLive, Preprocessor &PP) { in EvaluateDefined() argument
89 PP.LexUnexpandedNonComment(PeekTok); in EvaluateDefined()
96 PP.LexUnexpandedNonComment(PeekTok); in EvaluateDefined()
100 if (PP.getCodeCompletionHandler()) in EvaluateDefined()
101 PP.getCodeCompletionHandler()->CodeCompleteMacroName(false); in EvaluateDefined()
102 PP.setCodeCompletionReached(); in EvaluateDefined()
103 PP.LexUnexpandedNonComment(PeekTok); in EvaluateDefined()
108 PP.Diag(PeekTok, diag::err_pp_defined_requires_identifier); in EvaluateDefined()
119 Macro = PP.getMacroDirective(II); in EvaluateDefined()
[all …]
HDPragma.cpp42 void EmptyPragmaHandler::HandlePragma(Preprocessor &PP, in HandlePragma() argument
81 void PragmaNamespace::HandlePragma(Preprocessor &PP, in HandlePragma() argument
86 PP.LexUnexpandedToken(Tok); in HandlePragma()
94 PP.Diag(Tok, diag::warn_pragma_ignored); in HandlePragma()
99 Handler->HandlePragma(PP, Introducer, Tok); in HandlePragma()
131 Preprocessor &PP; member in __anonca9c62ed0111::LexingFor_PragmaRAII
138 LexingFor_PragmaRAII(Preprocessor &PP, bool InMacroArgPreExpansion, in LexingFor_PragmaRAII() argument
140 : PP(PP), InMacroArgPreExpansion(InMacroArgPreExpansion), in LexingFor_PragmaRAII()
144 PP.EnableBacktrackAtThisPos(); in LexingFor_PragmaRAII()
151 PP.CommitBacktrackedTokens(); in ~LexingFor_PragmaRAII()
[all …]
HDMacroArgs.cpp27 bool VarargsElided, Preprocessor &PP) { in create() argument
35 for (MacroArgs **Entry = &PP.MacroArgCache; *Entry; in create()
73 void MacroArgs::destroy(Preprocessor &PP) { in destroy() argument
82 ArgCache = PP.MacroArgCache; in destroy()
83 PP.MacroArgCache = this; in destroy()
132 Preprocessor &PP) const { in ArgNeedsPreexpansion()
137 if (II->hasMacroDefinition() && PP.getMacroInfo(II)->isEnabled()) in ArgNeedsPreexpansion()
149 Preprocessor &PP) { in getPreExpArgument() argument
159 SaveAndRestore<bool> PreExpandingMacroArgs(PP.InMacroArgPreExpansion, true); in getPreExpArgument()
168 PP.EnterTokenStream(AT, NumToks, false /*disable expand*/, in getPreExpArgument()
[all …]
HDTokenLexer.cpp46 SourceManager &SM = PP.getSourceManager(); in Init()
119 if (ActualArgs) ActualArgs->destroy(PP); in destroy()
128 Preprocessor &PP) { in MaybeRemoveCommaBeforeVaArgs() argument
136 if (!HasPasteOperator && !PP.getLangOpts().MicrosoftMode) in MaybeRemoveCommaBeforeVaArgs()
144 if (PP.getLangOpts().C99 && !PP.getLangOpts().GNUMode in MaybeRemoveCommaBeforeVaArgs()
154 PP.Diag(ResultToks.back().getLocation(), diag::ext_paste_comma); in MaybeRemoveCommaBeforeVaArgs()
203 Res = ActualArgs->getStringifiedArgument(ArgNo, PP, in ExpandFunctionArguments()
209 PP, true, in ExpandFunctionArguments()
258 Macro, ArgNo, PP)) in ExpandFunctionArguments()
270 if (ActualArgs->ArgNeedsPreexpansion(ArgTok, PP)) in ExpandFunctionArguments()
[all …]
HDLiteralSupport.cpp465 Preprocessor &PP) in NumericLiteralParser() argument
466 : PP(PP), ThisTokBegin(TokSpelling.begin()), ThisTokEnd(TokSpelling.end()) { in NumericLiteralParser()
496 PP.Diag(PP.AdvanceToTokenCharacter(TokLoc, s - ThisTokBegin), in NumericLiteralParser()
518 PP.Diag(PP.AdvanceToTokenCharacter(TokLoc, Exponent - ThisTokBegin), in NumericLiteralParser()
566 if (PP.getLangOpts().MicrosoftExt) { in NumericLiteralParser()
613 if (PP.getLangOpts().CPlusPlus1y && *s == 'i') in NumericLiteralParser()
628 if (isValidUDSuffix(PP.getLangOpts(), in NumericLiteralParser()
644 PP.Diag(PP.AdvanceToTokenCharacter(TokLoc, SuffixBegin - ThisTokBegin), in NumericLiteralParser()
653 PP.Diag(PP.AdvanceToTokenCharacter(TokLoc, in NumericLiteralParser()
695 PP.Diag(PP.AdvanceToTokenCharacter(TokLoc, Pos - ThisTokBegin), in checkSeparator()
[all …]
HDTokenConcatenation.cpp49 const LangOptions &LangOpts = PP.getLangOpts(); in IsIdentifierStringPrefix()
54 SourceManager &SM = PP.getSourceManager(); in IsIdentifierStringPrefix()
63 unsigned length = PP.getSpelling(Tok, TokPtr); in IsIdentifierStringPrefix()
67 return IsStringPrefix(StringRef(PP.getSpelling(Tok)), LangOpts.CPlusPlus11); in IsIdentifierStringPrefix()
70 TokenConcatenation::TokenConcatenation(Preprocessor &pp) : PP(pp) { in TokenConcatenation()
90 if (PP.getLangOpts().CPlusPlus11) { in TokenConcatenation()
121 static char GetFirstChar(Preprocessor &PP, const Token &Tok) { in GetFirstChar() argument
129 SourceManager &SM = PP.getSourceManager(); in GetFirstChar()
135 PP.getSpelling(Tok, TokPtr); in GetFirstChar()
138 return PP.getSpelling(Tok)[0]; in GetFirstChar()
[all …]
HDPPMacroExpansion.cpp73 static IdentifierInfo *RegisterBuiltinMacro(Preprocessor &PP, const char *Name){ in RegisterBuiltinMacro() argument
75 IdentifierInfo *Id = PP.getIdentifierInfo(Name); in RegisterBuiltinMacro()
78 MacroInfo *MI = PP.AllocateMacroInfo(SourceLocation()); in RegisterBuiltinMacro()
80 PP.appendDefMacroDirective(Id, MI); in RegisterBuiltinMacro()
134 Preprocessor &PP) { in isTrivialSingleTokenExpansion() argument
143 PP.getExternalSource()->updateOutOfDateIdentifier(*II); in isTrivialSingleTokenExpansion()
147 if (II->hasMacroDefinition() && PP.getMacroInfo(II)->isEnabled() && in isTrivialSingleTokenExpansion()
409 static bool GenerateNewArgTokens(Preprocessor &PP, in GenerateNewArgTokens() argument
460 PP.getLocForEndOfToken(ClosingBrace->getLocation()))); in GenerateNewArgTokens()
478 SourceLocation Loc = PP.getLocForEndOfToken((I - 1)->getLocation()); in GenerateNewArgTokens()
[all …]
/trueos/contrib/llvm/tools/clang/lib/Frontend/
HDPrintPreprocessedOutput.cpp36 Preprocessor &PP, raw_ostream &OS) { in PrintMacroDefinition() argument
72 OS << PP.getSpelling(*I, SpellingBuffer); in PrintMacroDefinition()
82 Preprocessor &PP; member in __anon2aec09b90111::PrintPPOutputPPCallbacks
102 : PP(pp), SM(PP.getSourceManager()), in PrintPPOutputPPCallbacks()
103 ConcatInfo(PP), OS(os), DisableLineMarkers(lineMarkers), in PrintPPOutputPPCallbacks()
114 UseLineDirective = PP.getLangOpts().MicrosoftExt; in PrintPPOutputPPCallbacks()
377 PrintMacroDefinition(*MacroNameTok.getIdentifierInfo(), *MI, PP, OS); in MacroDefined()
605 virtual void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, in HandlePragma()
616 std::string TokSpell = PP.getSpelling(PragmaTok); in HandlePragma()
618 PP.LexUnexpandedToken(PragmaTok); in HandlePragma()
[all …]
HDCompilerInstance.cpp88 void CompilerInstance::setPreprocessor(Preprocessor *Value) { PP = Value; } in setPreprocessor()
225 PP = new Preprocessor(&getPreprocessorOpts(), in createPreprocessor()
234 PTHMgr->setPreprocessor(&*PP); in createPreprocessor()
235 PP->setPTHManager(PTHMgr); in createPreprocessor()
239 PP->createPreprocessingRecord(); in createPreprocessor()
241 InitializePreprocessor(*PP, PPOpts, getHeaderSearchOpts(), getFrontendOpts()); in createPreprocessor()
243 PP->setPreprocessedOutput(getPreprocessorOutputOpts().ShowCPP); in createPreprocessor()
252 PP->getHeaderSearchInfo().setModuleCachePath(SpecificModuleCache); in createPreprocessor()
257 AttachDependencyFileGen(*PP, DepOpts); in createPreprocessor()
259 AttachDependencyGraphGen(*PP, DepOpts.DOTOutputFile, in createPreprocessor()
[all …]
HDInitPreprocessor.cpp85 static void AddImplicitIncludePTH(MacroBuilder &Builder, Preprocessor &PP, in AddImplicitIncludePTH() argument
87 PTHManager *P = PP.getPTHManager(); in AddImplicitIncludePTH()
92 PP.getDiagnostics().Report(diag::err_fe_pth_file_has_no_source_header) in AddImplicitIncludePTH()
97 AddImplicitInclude(Builder, OriginalFile, PP.getFileManager()); in AddImplicitIncludePTH()
102 static void AddImplicitIncludePCH(MacroBuilder &Builder, Preprocessor &PP, in AddImplicitIncludePCH() argument
105 ASTReader::getOriginalSourceFile(ImplicitIncludePCH, PP.getFileManager(), in AddImplicitIncludePCH()
106 PP.getDiagnostics()); in AddImplicitIncludePCH()
110 AddImplicitInclude(Builder, OriginalFile, PP.getFileManager()); in AddImplicitIncludePCH()
797 void clang::InitializePreprocessor(Preprocessor &PP, in InitializePreprocessor() argument
801 const LangOptions &LangOpts = PP.getLangOpts(); in InitializePreprocessor()
[all …]
HDDependencyFile.cpp34 const Preprocessor *PP; member in __anonc65e1a4b0111::DependencyFileCallback
50 : PP(_PP), OutputFile(Opts.OutputFile), Targets(Opts.Targets), in DependencyFileCallback()
75 void clang::AttachDependencyFileGen(Preprocessor &PP, in AttachDependencyFileGen() argument
78 PP.getDiagnostics().Report(diag::err_fe_dependency_file_requires_MT); in AttachDependencyFileGen()
84 PP.SetSuppressIncludeNotFoundError(true); in AttachDependencyFileGen()
86 PP.addPPCallbacks(new DependencyFileCallback(&PP, Opts)); in AttachDependencyFileGen()
112 SourceManager &SM = PP->getSourceManager(); in FileChanged()
177 PP->getDiagnostics().Report(diag::err_fe_error_opening) in OutputDependencyFile()
/trueos/contrib/llvm/tools/clang/lib/Rewrite/Frontend/
HDInclusionRewriter.cpp40 Preprocessor &PP; ///< Used to find inclusion directives. member in __anon98aa64850111::InclusionRewriter
52 InclusionRewriter(Preprocessor &PP, raw_ostream &OS, bool ShowLineMarkers);
94 InclusionRewriter::InclusionRewriter(Preprocessor &PP, raw_ostream &OS, in InclusionRewriter() argument
96 : PP(PP), SM(PP.getSourceManager()), OS(OS), PredefinesBuffer(0), in InclusionRewriter()
100 UseLineDirective = PP.getLangOpts().MicrosoftExt; in InclusionRewriter()
270 PP.LookUpIdentifierInfo(RawToken); in NextIdentifierName()
302 PP.LookUpIdentifierInfo(Tok); in HandleHasInclude()
307 StringRef TmpName = PP.getSpelling(Tok, TmpBuffer, &Invalid); in HandleHasInclude()
323 Filename = PP.getSpelling(Tok, FilenameBuffer, &Invalid); in HandleHasInclude()
335 bool isAngled = PP.GetIncludeFilenameSpelling(Tok.getLocation(), Filename); in HandleHasInclude()
[all …]
HDRewriteMacros.cpp62 static void LexRawTokensFromMainFile(Preprocessor &PP, in LexRawTokensFromMainFile() argument
64 SourceManager &SM = PP.getSourceManager(); in LexRawTokensFromMainFile()
69 Lexer RawLex(SM.getMainFileID(), FromFile, SM, PP.getLangOpts()); in LexRawTokensFromMainFile()
82 PP.LookUpIdentifierInfo(RawTok); in LexRawTokensFromMainFile()
90 void clang::RewriteMacrosInInput(Preprocessor &PP, raw_ostream *OS) { in RewriteMacrosInInput() argument
91 SourceManager &SM = PP.getSourceManager(); in RewriteMacrosInInput()
94 Rewrite.setSourceMgr(SM, PP.getLangOpts()); in RewriteMacrosInInput()
98 LexRawTokensFromMainFile(PP, RawTokens); in RewriteMacrosInInput()
104 PP.EnterMainSourceFile(); in RewriteMacrosInInput()
106 PP.Lex(PPTok); in RewriteMacrosInInput()
[all …]
HDHTMLPrint.cpp36 Preprocessor &PP; member in __anon04d08a9f0111::HTMLPrinter
42 : Out(OS), PP(pp), SyntaxHighlight(_SyntaxHighlight), in HTMLPrinter()
51 Preprocessor &PP, in CreateHTMLPrinter() argument
54 return new HTMLPrinter(OS, PP, SyntaxHighlight, HighlightMacros); in CreateHTMLPrinter()
62 if (PP.getDiagnostics().hasErrorOccurred()) in HandleTranslationUnit()
84 if (SyntaxHighlight) html::SyntaxHighlight(R, FID, PP); in HandleTranslationUnit()
85 if (HighlightMacros) html::HighlightMacros(R, FID, PP); in HandleTranslationUnit()
/trueos/contrib/llvm/tools/clang/lib/AST/
HDASTTypeTraits.cpp60 const PrintingPolicy &PP) const { in print()
62 TA->print(PP, OS); in print()
64 NNS->print(OS, PP); in print()
66 NNSL->getNestedNameSpecifier()->print(OS, PP); in print()
68 QT->print(OS, PP); in print()
70 TL->getType().print(OS, PP); in print()
72 D->print(OS, PP); in print()
74 S->printPretty(OS, 0, PP); in print()
76 QualType(T, 0).print(OS, PP); in print()
/trueos/contrib/llvm/tools/clang/include/clang/Lex/
HDMacroArgs.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,
/trueos/contrib/llvm/tools/clang/lib/Serialization/
HDGeneratePCH.cpp27 PCHGenerator::PCHGenerator(const Preprocessor &PP, in PCHGenerator() argument
32 : PP(PP), OutputFile(OutputFile), Module(Module), in PCHGenerator()
44 if (PP.getModuleLoader().HadFatalFailure) in HandleTranslationUnit()
47 bool hasErrors = PP.getDiagnostics().hasErrorOccurred(); in HandleTranslationUnit()
/trueos/contrib/llvm/tools/clang/include/clang/Frontend/
HDUtils.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,
96 void AttachHeaderIncludeGen(Preprocessor &PP, bool ShowAllHeaders = false,
102 void CacheTokens(Preprocessor &PP, llvm::raw_fd_ostream* OS);

12345678910