Searched refs:PP (Results 76 - 100 of 152) sorted by relevance

1234567

/external/clang/lib/Frontend/
H A DASTUnit.cpp264 void ASTUnit::setPreprocessor(Preprocessor *pp) { PP = pp; }
499 Preprocessor &PP; member in class:__anon17105::ASTInfoCollector
508 ASTInfoCollector(Preprocessor &PP, ASTContext &Context, LangOptions &LangOpt, argument
511 : PP(PP), Context(Context), LangOpt(LangOpt), TargetOpts(TargetOpts),
534 TargetInfo::CreateTargetInfo(PP.getDiagnostics(), this->TargetOpts);
557 PP.Initialize(*Target);
580 const Preprocessor *PP = nullptr) override {
581 if (PP)
582 SourceMgr = &PP
716 Preprocessor &PP = *AST->PP; local
937 PrecompilePreambleConsumer(ASTUnit &Unit, PrecompilePreambleAction *Action, const Preprocessor &PP, StringRef isysroot, raw_ostream *Out) argument
[all...]
H A DFrontendAction.cpp358 Preprocessor &PP = CI.getPreprocessor(); local
366 PP.getBuiltinInfo().InitializeBuiltins(PP.getIdentifierTable(),
367 PP.getLangOpts());
H A DTextDiagnosticPrinter.cpp40 const Preprocessor *PP) {
39 BeginSourceFile(const LangOptions &LO, const Preprocessor *PP) argument
/external/clang/lib/ARCMigrate/
H A DARCMT.cpp107 const Preprocessor *PP) override {
112 DiagClient.BeginSourceFile(Opts, PP);
216 Preprocessor &PP) {
222 Diags->setSourceManager(&PP.getSourceManager());
224 printer.BeginSourceFile(PP.getLangOpts(), &PP);
214 emitPremigrationErrors(const CapturedDiagList &arcDiags, DiagnosticOptions *diagOpts, Preprocessor &PP) argument
H A DObjCMT.cpp96 Preprocessor &PP; member in class:__anon16883::ObjCMigrateASTConsumer
107 Preprocessor &PP,
113 Remapper(remapper), FileMgr(fileMgr), PPRec(PPRec), PP(PP),
158 return canModifyFile(PP.getSourceManager().getFileEntryForID(FID));
171 FileID FID = PP.getSourceManager().getFileID(D->getLocation());
657 static bool UseNSOptionsMacro(Preprocessor &PP, ASTContext &Ctx, argument
685 if (!PP.getRawToken(EndLoc, Tok, /*IgnoreWhiteSpace=*/true))
785 PP.getSourceManager().getFileID(TypedefDcl->getLocation());
787 PP
102 ObjCMigrateASTConsumer(StringRef migrateDir, unsigned astMigrateActions, FileRemapper &remapper, FileManager &fileMgr, const PPConditionalDirectiveRecord *PPRec, Preprocessor &PP, bool isOutputFile, ArrayRef<std::string> WhiteList) argument
[all...]
/external/clang/lib/Parse/
H A DParseInit.cpp36 if (!PP.getLangOpts().CPlusPlus11)
42 switch (PP.LookAhead(0).getKind()) {
65 return PP.LookAhead(0).is(tok::colon);
H A DParseCXXInlineMethods.cpp318 PP.EnterTokenStream(&Toks->front(), Toks->size(), true, false);
355 assert(!PP.getSourceManager().isBeforeInTranslationUnit(origLoc,
409 PP.EnterTokenStream(LM.Toks.data(), LM.Toks.size(), true, false);
423 assert(!PP.getSourceManager().isBeforeInTranslationUnit(origLoc,
465 if (PP.getSourceManager().isBeforeInTranslationUnit(Tok.getLocation(),
525 PP.EnterTokenStream(MI.Toks.data(), MI.Toks.size(), true, false);
542 SourceLocation EndLoc = PP.getLocForEndOfToken(PrevTokLocation);
878 Self.PP.EnterTokenStream(Buffer, Toks.size(), true, /*Owned*/true);
H A DParseExpr.cpp245 PP.EnterToken(Tok);
280 const SourceManager &SM = PP.getSourceManager();
281 if (FILoc.isFileID() || PP.isAtStartOfMacroExpansion(FILoc, &FILoc)) {
350 << /*LHS*/0 << PP.getSpelling(Tok) << Actions.getExprRange(RHS.get());
376 << /*RHS*/1 << PP.getSpelling(OpToken)
1502 SourceLocation LParenLoc = PP.getLocForEndOfToken(OpTok.getLocation());
1503 SourceLocation RParenLoc = PP.getLocForEndOfToken(PrevTokLocation);
1592 RParenLoc = PP.getLocForEndOfToken(NameLoc);
1600 LParenLoc = PP.getLocForEndOfToken(EllipsisLoc);
1601 RParenLoc = PP
[all...]
H A DParseTemplate.cpp244 = PP.getLocForEndOfToken(TemplateInfo.TemplateLoc);
763 Lexer::AdvanceToTokenCharacter(RAngleLoc, 2, PP.getSourceManager(),
807 PP.getSourceManager(),
813 PP.EnterToken(Tok);
996 PP.AnnotateCachedTokens(Tok);
1034 PP.AnnotateCachedTokens(Tok);
1318 PP.EnterTokenStream(LPT.Toks.data(), LPT.Toks.size(), true, false);
H A DParseObjc.cpp349 P.PP.getSelectorTable().getNullarySelector(SelName);
353 SetterSel = P.PP.getSelectorTable().getSelector(1, &SetterName);
356 SelectorTable::constructSetterSelector(P.PP.getIdentifierTable(),
357 P.PP.getSelectorTable(),
713 std::string ThisTok(PP.getSpelling(Tok));
715 IdentifierInfo *II = &PP.getIdentifierTable().get(ThisTok.data());
938 Ident_instancetype = PP.getIdentifierInfo("instancetype");
1039 Selector Sel = PP.getSelectorTable().getNullarySelector(SelIdent);
1124 if (PP.getLocForEndOfToken(ArgInfo.NameLoc) == ColonLoc) {
1168 Selector Sel = PP
[all...]
/external/clang/lib/Sema/
H A DDeclSpec.cpp916 void DeclSpec::Finish(DiagnosticsEngine &D, Preprocessor &PP, const PrintingPolicy &Policy) { argument
939 PP.getSourceManager().isBeforeInTranslationUnit(ExtraLocs[I],
1039 PP.getLocForEndOfToken(getTypeSpecComplexLoc()),
1044 if (!PP.getLangOpts().CPlusPlus)
1064 if (PP.getSourceManager().isBeforeInTranslationUnit(
1085 if (PP.getLangOpts().CPlusPlus &&
1094 if (!PP.getLangOpts().CPlusPlus11 && TypeSpecType == TST_auto)
1096 if (PP.getLangOpts().CPlusPlus && !PP.getLangOpts().CPlusPlus11 &&
H A DSemaFixItUtils.cpp61 const SourceLocation End = S.PP.getLocForEndOfToken(FullExpr->getSourceRange()
167 MacroDirective *Macro = S.PP.getMacroDirectiveHistory(II);
/external/clang/lib/StaticAnalyzer/Core/
H A DPlistDiagnostics.cpp70 const Preprocessor &PP) {
72 PP.getLangOpts(), false));
78 const Preprocessor &PP) {
80 PP.getLangOpts(), true));
67 createPlistDiagnosticConsumer(AnalyzerOptions &AnalyzerOpts, PathDiagnosticConsumers &C, const std::string& s, const Preprocessor &PP) argument
75 createPlistMultiFileDiagnosticConsumer(AnalyzerOptions &AnalyzerOpts, PathDiagnosticConsumers &C, const std::string &s, const Preprocessor &PP) argument
H A DExprEngineCallAndReturn.cpp80 const ProgramPoint &PP = Node->getLocation(); local
82 if (PP.getLocationContext()->getCurrentStackFrame() == SF) {
83 if (Optional<StmtPoint> SP = PP.getAs<StmtPoint>()) {
86 } else if (Optional<CallExitEnd> CEE = PP.getAs<CallExitEnd>()) {
101 } else if (Optional<BlockEdge> BE = PP.getAs<BlockEdge>()) {
104 } else if (Optional<CallEnter> CE = PP.getAs<CallEnter>()) {
/external/clang/unittests/Lex/
H A DLexerTest.cpp71 Preprocessor PP(new PreprocessorOptions(), Diags, LangOpts, SourceMgr,
74 PP.Initialize(*Target);
75 PP.EnterMainSourceFile();
80 PP.Lex(tok);
/external/clang/lib/Serialization/
H A DASTWriter.cpp1030 void ASTWriter::WriteControlBlock(Preprocessor &PP, ASTContext &Context, argument
1177 = PP.getHeaderSearchInfo().getHeaderSearchOpts();
1209 const PreprocessorOptions &PPOpts = PP.getPreprocessorOpts();
1280 PP.getHeaderSearchInfo().getHeaderSearchOpts(),
1282 PP.getLangOpts().Modules);
1658 const Preprocessor &PP,
1733 = Content->getBuffer(PP.getDiagnostics(), PP.getSourceManager());
1746 = Content->getBuffer(PP.getDiagnostics(), PP
1657 WriteSourceManagerBlock(SourceManager &SourceMgr, const Preprocessor &PP, StringRef isysroot) argument
1896 shouldIgnoreMacro(MacroDirective *MD, bool IsModule, const Preprocessor &PP) argument
1916 WritePreprocessor(const Preprocessor &PP, bool IsModule) argument
2964 Preprocessor &PP; member in class:__anon17332::ASTIdentifierTableTrait
3105 ASTIdentifierTableTrait(ASTWriter &Writer, Preprocessor &PP, IdentifierResolver &IdResolver, bool IsModule) argument
3267 WriteIdentifierTable(Preprocessor &PP, IdentifierResolver &IdResolver, bool IsModule) argument
4012 Preprocessor &PP = SemaRef.PP; local
[all...]
H A DASTReader.cpp282 const LangOptions &ExistingLangOpts = PP.getLangOpts();
289 const TargetOptions &ExistingTargetOpts = PP.getTargetInfo().getTargetOpts();
378 DiagnosticsEngine &ExistingDiags = PP.getDiagnostics();
405 Module *M = PP.getHeaderSearchInfo().lookupModule(ModuleName);
570 const PreprocessorOptions &ExistingPPOpts = PP.getPreprocessorOpts();
574 PP.getFileManager(),
576 PP.getLangOpts());
580 PP.setCounterValue(Value);
997 << PP.getHeaderSearchInfo().getModuleCachePath();
1396 MacroInfo *MI = PP
1735 import(Preprocessor &PP, SourceLocation ImportLoc) const argument
[all...]
/external/clang/include/clang/AST/
H A DCommentSema.h47 const Preprocessor *PP; member in class:clang::comments::Sema
75 const Preprocessor *PP);
H A DRawCommentList.h123 const Preprocessor *PP, const Decl *D) const;
/external/clang/lib/AST/
H A DRawCommentList.cpp144 const Preprocessor *PP,
156 PP);
143 parse(const ASTContext &Context, const Preprocessor *PP, const Decl *D) const argument
H A DCommentSema.cpp30 const Preprocessor *PP) :
32 PP(PP), ThisDeclInfo(nullptr), BriefCommand(nullptr),
692 if (PP) {
695 PP->getIdentifierInfo("deprecated"),
698 StringRef MacroName = PP->getLastMacroWithSpelling(FD->getLocation(),
28 Sema(llvm::BumpPtrAllocator &Allocator, const SourceManager &SourceMgr, DiagnosticsEngine &Diags, CommandTraits &Traits, const Preprocessor *PP) argument
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DCoreEngine.h243 ExplodedNode *generateNodeImpl(const ProgramPoint &PP,
265 ExplodedNode *generateNode(const ProgramPoint &PP, argument
268 return generateNodeImpl(PP, State, Pred, false);
276 ExplodedNode *generateSink(const ProgramPoint &PP, argument
279 return generateNodeImpl(PP, State, Pred, true);
/external/clang/include/clang/Analysis/
H A DProgramPoint.h119 ProgramPoint& PP = t; local
120 PP = *this;
131 ProgramPoint& PP = t; local
132 PP = *this;
/external/clang/include/clang/Lex/
H A DLexer.h103 Lexer(FileID FID, const llvm::MemoryBuffer *InputBuffer, Preprocessor &PP);
123 unsigned TokLen, Preprocessor &PP);
/external/clang/include/clang/Serialization/
H A DASTReader.h236 Preprocessor &PP; member in class:clang::PCHValidator
240 PCHValidator(Preprocessor &PP, ASTReader &Reader) argument
241 : PP(PP), Reader(Reader) {}
353 Preprocessor &PP; member in class:clang::ASTReader
1273 /// \param PP the preprocessor associated with the context in which this
1300 ASTReader(Preprocessor &PP, ASTContext &Context, StringRef isysroot = "",
1429 Preprocessor &getPreprocessor() const { return PP; }

Completed in 1876 milliseconds

1234567