/external/llvm/lib/ExecutionEngine/RuntimeDyld/ |
D | RTDyldMemoryManager.cpp | 154 #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/ |
D | ParsePragma.cpp | 29 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 …]
|
D | Parser.cpp | 36 bool HandleComment(Preprocessor &PP, SourceRange Comment) override { in HandleComment() argument 46 Ident__except = PP.getIdentifierInfo("__except"); in getSEHExceptKeyword() 52 : PP(pp), Actions(actions), Diags(PP.getDiagnostics()), in Parser() 69 PP.addCommentHandler(CommentSemaHandler.get()); in Parser() 71 PP.setCodeCompletionHandler(*this); in Parser() 90 SourceLocation EndLoc = PP.getLocForEndOfToken(ParenRange.getEnd()); in SuggestParentheses() 138 SourceLocation EndLoc = PP.getLocForEndOfToken(PrevTokLocation); in ExpectAndConsume() 169 << PP.getSpelling(Tok) in ExpectAndConsumeSemi() 413 PP.removeCommentHandler(CommentSemaHandler.get()); in ~Parser() 415 PP.clearCodeCompletionHandler(); in ~Parser() [all …]
|
/external/clang/lib/Lex/ |
D | PPExpressions.cpp | 59 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() 117 Macro = PP.getMacroDirective(II); in EvaluateDefined() [all …]
|
D | Pragma.cpp | 42 void EmptyPragmaHandler::HandlePragma(Preprocessor &PP, in HandlePragma() argument 77 void PragmaNamespace::HandlePragma(Preprocessor &PP, in HandlePragma() argument 82 PP.LexUnexpandedToken(Tok); in HandlePragma() 90 PP.Diag(Tok, diag::warn_pragma_ignored); in HandlePragma() 95 Handler->HandlePragma(PP, Introducer, Tok); in HandlePragma() 127 Preprocessor &PP; member in __anon996c56cc0111::LexingFor_PragmaRAII 134 LexingFor_PragmaRAII(Preprocessor &PP, bool InMacroArgPreExpansion, in LexingFor_PragmaRAII() argument 136 : PP(PP), InMacroArgPreExpansion(InMacroArgPreExpansion), in LexingFor_PragmaRAII() 140 PP.EnableBacktrackAtThisPos(); in LexingFor_PragmaRAII() 147 PP.CommitBacktrackedTokens(); in ~LexingFor_PragmaRAII() [all …]
|
D | MacroArgs.cpp | 27 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 …]
|
D | TokenLexer.cpp | 47 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 …]
|
D | LiteralSupport.cpp | 509 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() 653 if (*s == 'i' && PP.getLangOpts().CPlusPlus14) in NumericLiteralParser() 670 if (isValidUDSuffix(PP.getLangOpts(), UDSuffixBuf)) { in NumericLiteralParser() 685 PP.Diag(PP.AdvanceToTokenCharacter(TokLoc, SuffixBegin - ThisTokBegin), in NumericLiteralParser() 694 PP.Diag(PP.AdvanceToTokenCharacter(TokLoc, in NumericLiteralParser() 736 PP.Diag(PP.AdvanceToTokenCharacter(TokLoc, Pos - ThisTokBegin), in checkSeparator() [all …]
|
D | TokenConcatenation.cpp | 49 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 …]
|
D | PPMacroExpansion.cpp | 77 static IdentifierInfo *RegisterBuiltinMacro(Preprocessor &PP, const char *Name){ in RegisterBuiltinMacro() argument 79 IdentifierInfo *Id = PP.getIdentifierInfo(Name); in RegisterBuiltinMacro() 82 MacroInfo *MI = PP.AllocateMacroInfo(SourceLocation()); in RegisterBuiltinMacro() 84 PP.appendDefMacroDirective(Id, MI); in RegisterBuiltinMacro() 146 Preprocessor &PP) { in isTrivialSingleTokenExpansion() argument 155 PP.getExternalSource()->updateOutOfDateIdentifier(*II); in isTrivialSingleTokenExpansion() 159 if (II->hasMacroDefinition() && PP.getMacroInfo(II)->isEnabled() && in isTrivialSingleTokenExpansion() 423 static bool GenerateNewArgTokens(Preprocessor &PP, in GenerateNewArgTokens() argument 474 PP.getLocForEndOfToken(ClosingBrace->getLocation()))); in GenerateNewArgTokens() 492 SourceLocation Loc = PP.getLocForEndOfToken((I - 1)->getLocation()); in GenerateNewArgTokens() [all …]
|
/external/clang/lib/Frontend/ |
D | PrintPreprocessedOutput.cpp | 36 Preprocessor &PP, raw_ostream &OS) { in PrintMacroDefinition() argument 72 OS << PP.getSpelling(*I, SpellingBuffer); in PrintMacroDefinition() 82 Preprocessor &PP; member in __anon236186d80111::PrintPPOutputPPCallbacks 102 : PP(pp), SM(PP.getSourceManager()), ConcatInfo(PP), OS(os), in PrintPPOutputPPCallbacks() 359 PrintMacroDefinition(*MacroNameTok.getIdentifierInfo(), *MI, PP, OS); in MacroDefined() 568 void HandlePragma(Preprocessor &PP, PragmaIntroducerKind Introducer, in HandlePragma() 579 std::string TokSpell = PP.getSpelling(PragmaTok); in HandlePragma() 584 if (PP.getLangOpts().MicrosoftExt) in HandlePragma() 585 PP.Lex(PragmaTok); in HandlePragma() 587 PP.LexUnexpandedToken(PragmaTok); in HandlePragma() [all …]
|
D | CompilerInstance.cpp | 96 void CompilerInstance::setPreprocessor(Preprocessor *Value) { PP = Value; } in setPreprocessor() 303 PP = new Preprocessor(&getPreprocessorOpts(), getDiagnostics(), getLangOpts(), in createPreprocessor() 306 PP->Initialize(getTarget()); in createPreprocessor() 312 PTHMgr->setPreprocessor(&*PP); in createPreprocessor() 313 PP->setPTHManager(PTHMgr); in createPreprocessor() 317 PP->createPreprocessingRecord(); in createPreprocessor() 320 InitializeFileRemapping(PP->getDiagnostics(), PP->getSourceManager(), in createPreprocessor() 321 PP->getFileManager(), PPOpts); in createPreprocessor() 324 InitializePreprocessor(*PP, PPOpts, getFrontendOpts()); in createPreprocessor() 327 ApplyHeaderSearchOptions(PP->getHeaderSearchInfo(), getHeaderSearchOpts(), in createPreprocessor() [all …]
|
D | DependencyGraph.cpp | 30 const Preprocessor *PP; member in __anon3948879c0111::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()
|
D | DependencyFile.cpp | 132 void DependencyCollector::attachToPreprocessor(Preprocessor &PP) { in attachToPreprocessor() argument 133 PP.addPPCallbacks( in attachToPreprocessor() 134 llvm::make_unique<DepCollectorPPCallbacks>(*this, PP.getSourceManager())); in attachToPreprocessor() 145 const Preprocessor *PP; member in __anon8133208a0211::DFGImpl 160 : PP(_PP), OutputFile(Opts.OutputFile), Targets(Opts.Targets), in DFGImpl() 204 clang::Preprocessor &PP, const clang::DependencyOutputOptions &Opts) { in CreateAndAttachToPreprocessor() argument 207 PP.getDiagnostics().Report(diag::err_fe_dependency_file_requires_MT); in CreateAndAttachToPreprocessor() 213 PP.SetSuppressIncludeNotFoundError(true); in CreateAndAttachToPreprocessor() 215 DFGImpl *Callback = new DFGImpl(&PP, Opts); in CreateAndAttachToPreprocessor() 216 PP.addPPCallbacks(std::unique_ptr<PPCallbacks>(Callback)); in CreateAndAttachToPreprocessor() [all …]
|
/external/clang/lib/Analysis/ |
D | ReachableCode.cpp | 127 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/ |
D | RewriteMacros.cpp | 62 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 …]
|
D | InclusionRewriter.cpp | 40 Preprocessor &PP; ///< Used to find inclusion directives. member in __anon145511440111::InclusionRewriter 53 InclusionRewriter(Preprocessor &PP, raw_ostream &OS, bool ShowLineMarkers, 92 InclusionRewriter::InclusionRewriter(Preprocessor &PP, raw_ostream &OS, in InclusionRewriter() argument 95 : PP(PP), SM(PP.getSourceManager()), OS(OS), MainEOL("\n"), in InclusionRewriter() 305 PP.LookUpIdentifierInfo(RawToken); in NextIdentifierName() 337 PP.LookUpIdentifierInfo(Tok); in HandleHasInclude() 342 StringRef TmpName = PP.getSpelling(Tok, TmpBuffer, &Invalid); in HandleHasInclude() 358 Filename = PP.getSpelling(Tok, FilenameBuffer, &Invalid); in HandleHasInclude() 370 bool isAngled = PP.GetIncludeFilenameSpelling(Tok.getLocation(), Filename); in HandleHasInclude() 372 const FileEntry *FileEnt = PP.getSourceManager().getFileEntryForID(FileId); in HandleHasInclude() [all …]
|
D | HTMLPrint.cpp | 36 Preprocessor &PP; member in __anon6d95e85e0111::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/Tooling/ |
D | CommentHandlerTest.cpp | 31 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/unittests/Lex/ |
D | PPCallbacksTest.cpp | 170 Preprocessor PP(PPOpts, Diags, LangOpts, SourceMgr, HeaderInfo, ModLoader, in InclusionDirectiveFilenameRange() local 173 PP.Initialize(*Target); in InclusionDirectiveFilenameRange() 175 PP.addPPCallbacks(std::unique_ptr<PPCallbacks>(Callbacks)); in InclusionDirectiveFilenameRange() 178 PP.EnterMainSourceFile(); in InclusionDirectiveFilenameRange() 182 PP.Lex(Tok); in InclusionDirectiveFilenameRange() 204 Preprocessor PP(new PreprocessorOptions(), Diags, OpenCLLangOpts, SourceMgr, in PragmaOpenCLExtensionCall() local 207 PP.Initialize(*Target); in PragmaOpenCLExtensionCall() 213 PP.getIdentifierTable(), PP.getSelectorTable(), in PragmaOpenCLExtensionCall() 214 PP.getBuiltinInfo()); in PragmaOpenCLExtensionCall() 218 Sema S(PP, Context, Consumer); in PragmaOpenCLExtensionCall() [all …]
|
/external/clang/include/clang/Lex/ |
D | MacroArgs.h | 66 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/ |
D | SourceManagerTest.cpp | 84 Preprocessor PP(new PreprocessorOptions(), Diags, LangOpts, SourceMgr, in TEST_F() local 88 PP.Initialize(*Target); in TEST_F() 89 PP.EnterMainSourceFile(); in TEST_F() 94 PP.Lex(tok); in TEST_F() 116 ASSERT_EQ("M", PP.getSpelling(macroExpStartLoc, str)); in TEST_F() 117 ASSERT_EQ(")", PP.getSpelling(macroExpEndLoc, str)); in TEST_F() 201 Preprocessor PP(new PreprocessorOptions(), Diags, LangOpts, SourceMgr, in TEST_F() local 205 PP.Initialize(*Target); in TEST_F() 206 PP.EnterMainSourceFile(); in TEST_F() 211 PP.Lex(tok); in TEST_F() [all …]
|
/external/clang/lib/AST/ |
D | ASTTypeTraits.cpp | 113 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/ |
D | GeneratePCH.cpp | 27 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()
|
/external/iptables/extensions/ |
D | libxt_osf.man | 29 .PP 31 .PP 34 .PP 37 .PP 39 .PP 41 .PP 43 .PP
|