Home
last modified time | relevance | path

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

1234567891011

/external/llvm/lib/ExecutionEngine/RuntimeDyld/
DRTDyldMemoryManager.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 …]
/external/clang/lib/Parse/
DParsePragma.cpp29 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer,
35 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer,
41 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer,
47 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer,
53 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer,
59 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer,
65 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer,
71 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer,
77 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer,
84 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer,
[all …]
DParser.cpp36 bool HandleComment(Preprocessor &PP, SourceRange Comment) override { in HandleComment() argument
66 Ident__except = PP.getIdentifierInfo("__except"); in getSEHExceptKeyword()
72 : PP(pp), Actions(actions), Diags(PP.getDiagnostics()), in Parser()
89 PP.addCommentHandler(CommentSemaHandler.get()); in Parser()
91 PP.setCodeCompletionHandler(*this); in Parser()
110 SourceLocation EndLoc = PP.getLocForEndOfToken(ParenRange.getEnd()); in SuggestParentheses()
158 SourceLocation EndLoc = PP.getLocForEndOfToken(PrevTokLocation); in ExpectAndConsume()
189 << PP.getSpelling(Tok) in ExpectAndConsumeSemi()
434 PP.removeCommentHandler(CommentSemaHandler.get()); in ~Parser()
436 PP.clearCodeCompletionHandler(); in ~Parser()
[all …]
/external/clang/lib/Lex/
DPragma.cpp43 void EmptyPragmaHandler::HandlePragma(Preprocessor &PP, in HandlePragma() argument
78 void PragmaNamespace::HandlePragma(Preprocessor &PP, in HandlePragma() argument
83 PP.LexUnexpandedToken(Tok); in HandlePragma()
91 PP.Diag(Tok, diag::warn_pragma_ignored); in HandlePragma()
96 Handler->HandlePragma(PP, Introducer, Tok); in HandlePragma()
128 Preprocessor &PP; member in __anon1d46c92c0111::LexingFor_PragmaRAII
135 LexingFor_PragmaRAII(Preprocessor &PP, bool InMacroArgPreExpansion, in LexingFor_PragmaRAII() argument
137 : PP(PP), InMacroArgPreExpansion(InMacroArgPreExpansion), in LexingFor_PragmaRAII()
141 PP.EnableBacktrackAtThisPos(); in LexingFor_PragmaRAII()
148 PP.CommitBacktrackedTokens(); in ~LexingFor_PragmaRAII()
[all …]
DPPExpressions.cpp59 Preprocessor &PP);
83 bool ValueLive, Preprocessor &PP) { in EvaluateDefined() argument
88 PP.LexUnexpandedNonComment(PeekTok); in EvaluateDefined()
95 PP.LexUnexpandedNonComment(PeekTok); in EvaluateDefined()
99 if (PP.getCodeCompletionHandler()) in EvaluateDefined()
100 PP.getCodeCompletionHandler()->CodeCompleteMacroName(false); in EvaluateDefined()
101 PP.setCodeCompletionReached(); in EvaluateDefined()
102 PP.LexUnexpandedNonComment(PeekTok); in EvaluateDefined()
106 if (PP.CheckMacroName(PeekTok, MU_Other)) in EvaluateDefined()
111 MacroDefinition Macro = PP.getMacroDefinition(II); in EvaluateDefined()
[all …]
DMacroArgs.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()
148 Preprocessor &PP) { in getPreExpArgument() argument
158 SaveAndRestore<bool> PreExpandingMacroArgs(PP.InMacroArgPreExpansion, true); in getPreExpArgument()
167 PP.EnterTokenStream(AT, NumToks, false /*disable expand*/, in getPreExpArgument()
174 PP.Lex(Tok); in getPreExpArgument()
[all …]
DTokenLexer.cpp47 SourceManager &SM = PP.getSourceManager(); in Init()
121 if (ActualArgs) ActualArgs->destroy(PP); in destroy()
126 unsigned MacroArgNo, Preprocessor &PP) { in MaybeRemoveCommaBeforeVaArgs() argument
134 if (!HasPasteOperator && !PP.getLangOpts().MSVCCompat) in MaybeRemoveCommaBeforeVaArgs()
142 if (PP.getLangOpts().C99 && !PP.getLangOpts().GNUMode in MaybeRemoveCommaBeforeVaArgs()
152 PP.Diag(ResultToks.back().getLocation(), diag::ext_paste_comma); in MaybeRemoveCommaBeforeVaArgs()
199 Res = ActualArgs->getStringifiedArgument(ArgNo, PP, in ExpandFunctionArguments()
205 PP, true, in ExpandFunctionArguments()
258 Macro, ArgNo, PP)) in ExpandFunctionArguments()
270 if (ActualArgs->ArgNeedsPreexpansion(ArgTok, PP)) in ExpandFunctionArguments()
[all …]
DLiteralSupport.cpp509 Preprocessor &PP) in NumericLiteralParser() argument
510 : PP(PP), ThisTokBegin(TokSpelling.begin()), ThisTokEnd(TokSpelling.end()) { in NumericLiteralParser()
540 PP.Diag(PP.AdvanceToTokenCharacter(TokLoc, s - ThisTokBegin), in NumericLiteralParser()
562 PP.Diag(PP.AdvanceToTokenCharacter(TokLoc, Exponent - ThisTokBegin), in NumericLiteralParser()
611 if (PP.getLangOpts().MicrosoftExt) { in NumericLiteralParser()
650 if (*s == 'i' && PP.getLangOpts().CPlusPlus14) in NumericLiteralParser()
667 if (isValidUDSuffix(PP.getLangOpts(), UDSuffixBuf)) { in NumericLiteralParser()
682 PP.Diag(PP.AdvanceToTokenCharacter(TokLoc, SuffixBegin - ThisTokBegin), in NumericLiteralParser()
690 PP.Diag(PP.AdvanceToTokenCharacter(TokLoc, in NumericLiteralParser()
732 PP.Diag(PP.AdvanceToTokenCharacter(TokLoc, Pos - ThisTokBegin), in checkSeparator()
[all …]
DTokenConcatenation.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()
103 if (PP.getLangOpts().CPlusPlus1z) in TokenConcatenation()
125 static char GetFirstChar(Preprocessor &PP, const Token &Tok) { in GetFirstChar() argument
133 SourceManager &SM = PP.getSourceManager(); in GetFirstChar()
139 PP.getSpelling(Tok, TokPtr); in GetFirstChar()
[all …]
DPPMacroExpansion.cpp271 static IdentifierInfo *RegisterBuiltinMacro(Preprocessor &PP, const char *Name){ in RegisterBuiltinMacro() argument
273 IdentifierInfo *Id = PP.getIdentifierInfo(Name); in RegisterBuiltinMacro()
276 MacroInfo *MI = PP.AllocateMacroInfo(SourceLocation()); in RegisterBuiltinMacro()
278 PP.appendDefMacroDirective(Id, MI); in RegisterBuiltinMacro()
344 Preprocessor &PP) { in isTrivialSingleTokenExpansion() argument
353 PP.getExternalSource()->updateOutOfDateIdentifier(*II); in isTrivialSingleTokenExpansion()
357 if (auto *ExpansionMI = PP.getMacroInfo(II)) in isTrivialSingleTokenExpansion()
612 static bool GenerateNewArgTokens(Preprocessor &PP, in GenerateNewArgTokens() argument
663 PP.getLocForEndOfToken(ClosingBrace->getLocation()))); in GenerateNewArgTokens()
681 SourceLocation Loc = PP.getLocForEndOfToken((I - 1)->getLocation()); in GenerateNewArgTokens()
[all …]
/external/clang/lib/Frontend/
DPrintPreprocessedOutput.cpp36 Preprocessor &PP, raw_ostream &OS) { in PrintMacroDefinition() argument
71 OS << PP.getSpelling(T, SpellingBuffer); in PrintMacroDefinition()
81 Preprocessor &PP; member in __anon0b8901380111::PrintPPOutputPPCallbacks
101 : PP(pp), SM(PP.getSourceManager()), ConcatInfo(PP), OS(os), in PrintPPOutputPPCallbacks()
358 PrintMacroDefinition(*MacroNameTok.getIdentifierInfo(), *MI, PP, OS); in MacroDefined()
572 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, in HandlePragma()
590 std::string TokSpell = PP.getSpelling(PragmaTok); in HandlePragma()
597 PP.Lex(PragmaTok); in HandlePragma()
599 PP.LexUnexpandedToken(PragmaTok); in HandlePragma()
607 static void PrintPreprocessedTokens(Preprocessor &PP, Token &Tok, in PrintPreprocessedTokens() argument
[all …]
DCompilerInstance.cpp96 void CompilerInstance::setPreprocessor(Preprocessor *Value) { PP = Value; } in setPreprocessor()
310 PP = new Preprocessor(&getPreprocessorOpts(), getDiagnostics(), getLangOpts(), in createPreprocessor()
313 PP->Initialize(getTarget(), getAuxTarget()); in createPreprocessor()
319 PTHMgr->setPreprocessor(&*PP); in createPreprocessor()
320 PP->setPTHManager(PTHMgr); in createPreprocessor()
324 PP->createPreprocessingRecord(); in createPreprocessor()
327 InitializeFileRemapping(PP->getDiagnostics(), PP->getSourceManager(), in createPreprocessor()
328 PP->getFileManager(), PPOpts); in createPreprocessor()
331 InitializePreprocessor(*PP, PPOpts, getPCHContainerReader(), in createPreprocessor()
335 ApplyHeaderSearchOptions(PP->getHeaderSearchInfo(), getHeaderSearchOpts(), in createPreprocessor()
[all …]
DDependencyFile.cpp141 void DependencyCollector::attachToPreprocessor(Preprocessor &PP) { in attachToPreprocessor() argument
142 PP.addPPCallbacks( in attachToPreprocessor()
143 llvm::make_unique<DepCollectorPPCallbacks>(*this, PP.getSourceManager())); in attachToPreprocessor()
144 PP.getHeaderSearchInfo().getModuleMap().addModuleMapCallbacks( in attachToPreprocessor()
156 const Preprocessor *PP; member in __anonc90c6eea0211::DFGImpl
173 : PP(_PP), OutputFile(Opts.OutputFile), Targets(Opts.Targets), in DFGImpl()
234 clang::Preprocessor &PP, const clang::DependencyOutputOptions &Opts) { in CreateAndAttachToPreprocessor() argument
237 PP.getDiagnostics().Report(diag::err_fe_dependency_file_requires_MT); in CreateAndAttachToPreprocessor()
243 PP.SetSuppressIncludeNotFoundError(true); in CreateAndAttachToPreprocessor()
245 DFGImpl *Callback = new DFGImpl(&PP, Opts); in CreateAndAttachToPreprocessor()
[all …]
DDependencyGraph.cpp30 const Preprocessor *PP; member in __anon7c4ba1fc0111::DependencyGraphCallback
47 : PP(_PP), OutputFile(OutputFile.str()), SysRoot(SysRoot.str()) { } in DependencyGraphCallback()
62 void clang::AttachDependencyGraphGen(Preprocessor &PP, StringRef OutputFile, in AttachDependencyGraphGen() argument
64 PP.addPPCallbacks(llvm::make_unique<DependencyGraphCallback>(&PP, OutputFile, in AttachDependencyGraphGen()
80 SourceManager &SM = PP->getSourceManager(); in InclusionDirective()
103 PP->getDiagnostics().Report(diag::err_fe_error_opening) << OutputFile in OutputGraphFile()
/external/clang/unittests/Tooling/
DCommentHandlerTest.cpp31 CommentHandlerVisitor() : base(), PP(nullptr), Verified(false) {} in CommentHandlerVisitor()
37 bool HandleComment(Preprocessor &PP, SourceRange Loc) override { in HandleComment() argument
38 assert(&PP == this->PP && "Preprocessor changed!"); in HandleComment()
41 SourceManager &SM = PP.getSourceManager(); in HandleComment()
64 Preprocessor *PP; member in clang::CommentHandlerVisitor
77 V->PP = &CI.getPreprocessor(); in BeginSourceFileAction()
78 V->PP->addCommentHandler(V); in BeginSourceFileAction()
85 V->PP->removeCommentHandler(V); in EndSourceFileAction()
93 Preprocessor *PP; member in clang::CommentVerifier
96 CommentVerifier(const CommentList &Comments, Preprocessor *PP) in CommentVerifier() argument
[all …]
/external/clang/lib/Analysis/
DReachableCode.cpp127 Preprocessor &PP, in isExpandedFromConfigurationMacro() argument
139 SourceManager &SM = PP.getSourceManager(); in isExpandedFromConfigurationMacro()
141 StringRef MacroName = PP.getImmediateMacroName(TopL); in isExpandedFromConfigurationMacro()
150 static bool isConfigurationValue(const ValueDecl *D, Preprocessor &PP);
160 Preprocessor &PP, in isConfigurationValue() argument
173 return isConfigurationValue(PE->getSubExpr(), PP, SilenceableCondVal, in isConfigurationValue()
188 return isConfigurationValue(cast<DeclRefExpr>(S)->getDecl(), PP); in isConfigurationValue()
198 return WrappedInParens || isExpandedFromConfigurationMacro(E, PP, IgnoreYES_NO); in isConfigurationValue()
203 return isConfigurationValue(cast<MemberExpr>(S)->getMemberDecl(), PP); in isConfigurationValue()
212 return isConfigurationValue(B->getLHS(), PP, SilenceableCondVal, in isConfigurationValue()
[all …]
/external/clang/lib/Frontend/Rewrite/
DRewriteMacros.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 …]
DInclusionRewriter.cpp38 Preprocessor &PP; ///< Used to find inclusion directives. member in __anona444a3a40111::InclusionRewriter
53 InclusionRewriter(Preprocessor &PP, raw_ostream &OS, bool ShowLineMarkers,
93 InclusionRewriter::InclusionRewriter(Preprocessor &PP, raw_ostream &OS, in InclusionRewriter() argument
96 : PP(PP), SM(PP.getSourceManager()), OS(OS), MainEOL("\n"), in InclusionRewriter()
321 PP.LookUpIdentifierInfo(RawToken); in NextIdentifierName()
353 PP.LookUpIdentifierInfo(Tok); in HandleHasInclude()
358 StringRef TmpName = PP.getSpelling(Tok, TmpBuffer, &Invalid); in HandleHasInclude()
374 Filename = PP.getSpelling(Tok, FilenameBuffer, &Invalid); in HandleHasInclude()
386 bool isAngled = PP.GetIncludeFilenameSpelling(Tok.getLocation(), Filename); in HandleHasInclude()
388 const FileEntry *FileEnt = PP.getSourceManager().getFileEntryForID(FileId); in HandleHasInclude()
[all …]
DHTMLPrint.cpp36 Preprocessor &PP; member in __anon7dc91abe0111::HTMLPrinter
42 : Out(OS), PP(pp), SyntaxHighlight(_SyntaxHighlight), in HTMLPrinter()
51 Preprocessor &PP, in CreateHTMLPrinter() argument
54 return llvm::make_unique<HTMLPrinter>(OS, PP, SyntaxHighlight, in CreateHTMLPrinter()
63 if (PP.getDiagnostics().hasErrorOccurred()) in HandleTranslationUnit()
85 if (SyntaxHighlight) html::SyntaxHighlight(R, FID, PP); in HandleTranslationUnit()
86 if (HighlightMacros) html::HighlightMacros(R, FID, PP); in HandleTranslationUnit()
/external/clang/unittests/Lex/
DPPCallbacksTest.cpp171 Preprocessor PP(PPOpts, Diags, LangOpts, SourceMgr, HeaderInfo, ModLoader, in InclusionDirectiveFilenameRange() local
174 PP.Initialize(*Target); in InclusionDirectiveFilenameRange()
176 PP.addPPCallbacks(std::unique_ptr<PPCallbacks>(Callbacks)); in InclusionDirectiveFilenameRange()
179 PP.EnterMainSourceFile(); in InclusionDirectiveFilenameRange()
183 PP.Lex(Tok); in InclusionDirectiveFilenameRange()
205 Preprocessor PP(new PreprocessorOptions(), Diags, OpenCLLangOpts, SourceMgr, in PragmaOpenCLExtensionCall() local
208 PP.Initialize(*Target); in PragmaOpenCLExtensionCall()
214 PP.getIdentifierTable(), PP.getSelectorTable(), in PragmaOpenCLExtensionCall()
215 PP.getBuiltinInfo()); in PragmaOpenCLExtensionCall()
219 Sema S(PP, Context, Consumer); in PragmaOpenCLExtensionCall()
[all …]
/external/clang/include/clang/Lex/
DMacroArgs.h66 bool VarargsElided, Preprocessor &PP);
70 void destroy(Preprocessor &PP);
74 bool ArgNeedsPreexpansion(const Token *ArgTok, Preprocessor &PP) const;
89 getPreExpArgument(unsigned Arg, const MacroInfo *MI, Preprocessor &PP);
93 const Token &getStringifiedArgument(unsigned ArgNo, Preprocessor &PP,
115 Preprocessor &PP, bool Charify,
/external/clang/unittests/Basic/
DSourceManagerTest.cpp83 Preprocessor PP(new PreprocessorOptions(), Diags, LangOpts, SourceMgr, in TEST_F() local
87 PP.Initialize(*Target); in TEST_F()
88 PP.EnterMainSourceFile(); in TEST_F()
93 PP.Lex(tok); in TEST_F()
115 ASSERT_EQ("M", PP.getSpelling(macroExpStartLoc, str)); in TEST_F()
116 ASSERT_EQ(")", PP.getSpelling(macroExpEndLoc, str)); in TEST_F()
200 Preprocessor PP(new PreprocessorOptions(), Diags, LangOpts, SourceMgr, in TEST_F() local
204 PP.Initialize(*Target); in TEST_F()
205 PP.EnterMainSourceFile(); in TEST_F()
210 PP.Lex(tok); in TEST_F()
[all …]
/external/clang/lib/AST/
DASTTypeTraits.cpp113 const PrintingPolicy &PP) const { in print()
115 TA->print(PP, OS); in print()
117 NNS->print(OS, PP); in print()
119 NNSL->getNestedNameSpecifier()->print(OS, PP); in print()
121 QT->print(OS, PP); in print()
123 TL->getType().print(OS, PP); in print()
125 D->print(OS, PP); in print()
127 S->printPretty(OS, nullptr, PP); in print()
129 QualType(T, 0).print(OS, PP); in print()
/external/clang/lib/Serialization/
DGeneratePCH.cpp27 const Preprocessor &PP, StringRef OutputFile, in PCHGenerator() argument
32 : PP(PP), OutputFile(OutputFile), Module(Module), isysroot(isysroot.str()), in PCHGenerator()
44 if (PP.getModuleLoader().HadFatalFailure) in HandleTranslationUnit()
47 bool hasErrors = PP.getDiagnostics().hasErrorOccurred(); in HandleTranslationUnit()
/external/iptables/extensions/
Dlibxt_osf.man29 .PP
31 .PP
34 .PP
37 .PP
39 .PP
41 .PP
43 .PP

1234567891011