Home
last modified time | relevance | path

Searched refs:PPRec (Results 1 – 14 of 14) sorted by relevance

/external/clang/unittests/Lex/
DPPConditionalDirectiveRecordTest.cpp104 PPRec = new PPConditionalDirectiveRecord(SourceMgr); in TEST_F() local
105 PP.addPPCallbacks(std::unique_ptr<PPCallbacks>(PPRec)); in TEST_F()
120 EXPECT_FALSE(PPRec->rangeIntersectsConditionalDirective( in TEST_F()
122 EXPECT_TRUE(PPRec->rangeIntersectsConditionalDirective( in TEST_F()
124 EXPECT_FALSE(PPRec->rangeIntersectsConditionalDirective( in TEST_F()
126 EXPECT_TRUE(PPRec->rangeIntersectsConditionalDirective( in TEST_F()
128 EXPECT_TRUE(PPRec->rangeIntersectsConditionalDirective( in TEST_F()
130 EXPECT_FALSE(PPRec->rangeIntersectsConditionalDirective( in TEST_F()
132 EXPECT_FALSE(PPRec->rangeIntersectsConditionalDirective( in TEST_F()
134 EXPECT_TRUE(PPRec->rangeIntersectsConditionalDirective( in TEST_F()
[all …]
/external/clang/include/clang/Edit/
DEditedSource.h32 const PPConditionalDirectiveRecord *PPRec; variable
54 const PPConditionalDirectiveRecord *PPRec = nullptr)
55 : SourceMgr(SM), LangOpts(LangOpts), PPRec(PPRec), IdentTable(LangOpts), in SourceMgr()
61 return PPRec; in getPPCondDirectiveRecord()
DCommit.h50 const PPConditionalDirectiveRecord *PPRec; variable
61 const PPConditionalDirectiveRecord *PPRec = nullptr)
62 : SourceMgr(SM), LangOpts(LangOpts), PPRec(PPRec), Editor(nullptr), in SourceMgr()
/external/clang/lib/Edit/
DCommit.cpp40 PPRec(Editor.getPPCondDirectiveRecord()), in Commit()
76 if (PPRec && in insertFromRange()
77 PPRec->areInDifferentConditionalDirectiveRegion(loc, range.getBegin())) { in insertFromRange()
308 if (PPRec && PPRec->rangeIntersectsConditionalDirective(range.getAsRange())) in canRemoveRange()
/external/clang/tools/libclang/
DIndexing.cpp171 PPConditionalDirectiveRecord &PPRec;
183 : SessionData(sessionData), PPRec(ppRec), PP(pp) {
209 SourceLocation RegionLoc = PPRec.findConditionalDirectiveRegionLoc(Loc);
218 const SourceManager &SM = PPRec.getSourceManager();
432 auto *PPRec = new PPConditionalDirectiveRecord(PP.getSourceManager()); in CreateASTConsumer() local
433 PP.addPPCallbacks(std::unique_ptr<PPCallbacks>(PPRec)); in CreateASTConsumer()
434 SKCtrl = llvm::make_unique<TUSkipBodyControl>(*SKData, *PPRec, PP); in CreateASTConsumer()
DCursorVisitor.h192 PreprocessingRecord &PPRec,
DCIndex.cpp231 PreprocessingRecord &PPRec, in visitPreprocessedEntitiesInRange() argument
244 const auto &Entities = PPRec.getPreprocessedEntitiesInRange(R); in visitPreprocessedEntitiesInRange()
246 PPRec, FID); in visitPreprocessedEntitiesInRange()
399 PreprocessingRecord &PPRec in visitPreprocessedEntitiesInRegion() local
411 PPRec, *this); in visitPreprocessedEntitiesInRegion()
422 PPRec, *this); in visitPreprocessedEntitiesInRegion()
426 PPRec, *this); in visitPreprocessedEntitiesInRegion()
429 return visitPreprocessedEntitiesInRange(SourceRange(B, E), PPRec, *this); in visitPreprocessedEntitiesInRegion()
436 return visitPreprocessedEntities(PPRec.local_begin(), PPRec.local_end(), in visitPreprocessedEntitiesInRegion()
437 PPRec); in visitPreprocessedEntitiesInRegion()
[all …]
/external/clang/lib/ARCMigrate/
DObjCMT.cpp98 const PPConditionalDirectiveRecord *PPRec; member in __anon4eb04f6a0111::ObjCMigrateASTConsumer
110 const PPConditionalDirectiveRecord *PPRec, in ObjCMigrateASTConsumer() argument
117 Remapper(remapper), FileMgr(fileMgr), PPRec(PPRec), PP(PP), in ObjCMigrateASTConsumer()
131 PPRec)); in Initialize()
195 PPRec = new PPConditionalDirectiveRecord(CompInst->getSourceManager()); in CreateASTConsumer() local
196 CI.getPreprocessor().addPPCallbacks(std::unique_ptr<PPCallbacks>(PPRec)); in CreateASTConsumer()
200 MigrateDir, ObjCMigAction, Remapper, CompInst->getFileManager(), PPRec, in CreateASTConsumer()
2015 PPRec = new PPConditionalDirectiveRecord(CI.getSourceManager()); in CreateASTConsumer() local
2027 CI.getPreprocessor().addPPCallbacks(std::unique_ptr<PPCallbacks>(PPRec)); in CreateASTConsumer()
2032 CI.getFileManager(), PPRec, CI.getPreprocessor(), in CreateASTConsumer()
/external/clang/lib/Lex/
DPreprocessingRecord.cpp25 InclusionDirective::InclusionDirective(PreprocessingRecord &PPRec, in InclusionDirective() argument
35 = (char*)PPRec.Allocate(FileName.size() + 1, llvm::alignOf<char>()); in InclusionDirective()
/external/clang/include/clang/Lex/
DPreprocessingRecord.h233 InclusionDirective(PreprocessingRecord &PPRec,
/external/clang/lib/Serialization/
DASTWriter.cpp2051 PreprocessingRecord *PPRec = PP.getPreprocessingRecord(); in WritePreprocessor() local
2052 if (PPRec) in WritePreprocessor()
2053 WritePreprocessorDetail(*PPRec); in WritePreprocessor()
2197 if (PPRec) in WritePreprocessor()
2198 Record.push_back(MacroDefinitions[PPRec->findMacroDefinition(MI)]); in WritePreprocessor()
2235 void ASTWriter::WritePreprocessorDetail(PreprocessingRecord &PPRec) { in WritePreprocessorDetail() argument
2236 if (PPRec.local_begin() == PPRec.local_end()) in WritePreprocessorDetail()
2262 = (Chain ? PPRec.getNumLoadedPreprocessedEntities() : 0) in WritePreprocessorDetail()
2266 for (PreprocessingRecord::iterator E = PPRec.local_begin(), in WritePreprocessorDetail()
2267 EEnd = PPRec.local_end(); in WritePreprocessorDetail()
DASTReader.cpp1473 PreprocessingRecord &PPRec = *PP.getPreprocessingRecord(); in ReadMacroRecord() local
1475 PPRec.getPPEntityID(GlobalID - 1, /*isLoaded=*/true); in ReadMacroRecord()
1477 PPRec.getPreprocessedEntity(PPID)); in ReadMacroRecord()
1479 PPRec.RegisterMacroDefinition(Macro, PPDef); in ReadMacroRecord()
4837 if (PreprocessingRecord *PPRec = PP.getPreprocessingRecord()) in getModulePreprocessedEntities() local
4838 return PPRec->getIteratorsForLoadedRange(Mod.BasePreprocessedEntityID, in getModulePreprocessedEntities()
4876 PreprocessingRecord &PPRec = *PP.getPreprocessingRecord(); in ReadPreprocessedEntity() local
4893 PPRec.getLoadedPreprocessedEntity(GlobalID - 1)); in ReadPreprocessedEntity()
4898 ME = new (PPRec) MacroExpansion(Name, Range); in ReadPreprocessedEntity()
4900 ME = new (PPRec) MacroExpansion(Def, Range); in ReadPreprocessedEntity()
[all …]
/external/clang/include/clang/Serialization/
DASTWriter.h518 void WritePreprocessorDetail(PreprocessingRecord &PPRec);
/external/clang/lib/Frontend/
DASTUnit.cpp2760 if (PreprocessingRecord *PPRec = PP->getPreprocessingRecord()) in getLocalPreprocessingEntities() local
2761 return llvm::make_range(PPRec->local_begin(), PPRec->local_end()); in getLocalPreprocessingEntities()