Home
last modified time | relevance | path

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

/external/clang/unittests/Lex/
DPPConditionalDirectiveRecordTest.cpp105 PPRec = new PPConditionalDirectiveRecord(SourceMgr); in TEST_F() local
106 PP.addPPCallbacks(PPRec); in TEST_F()
121 EXPECT_FALSE(PPRec->rangeIntersectsConditionalDirective( in TEST_F()
123 EXPECT_TRUE(PPRec->rangeIntersectsConditionalDirective( in TEST_F()
125 EXPECT_FALSE(PPRec->rangeIntersectsConditionalDirective( in TEST_F()
127 EXPECT_TRUE(PPRec->rangeIntersectsConditionalDirective( in TEST_F()
129 EXPECT_TRUE(PPRec->rangeIntersectsConditionalDirective( in TEST_F()
131 EXPECT_FALSE(PPRec->rangeIntersectsConditionalDirective( in TEST_F()
133 EXPECT_FALSE(PPRec->rangeIntersectsConditionalDirective( in TEST_F()
135 EXPECT_TRUE(PPRec->rangeIntersectsConditionalDirective( in TEST_F()
[all …]
/external/clang/include/clang/Edit/
DEditedSource.h30 const PPConditionalDirectiveRecord *PPRec; variable
48 const PPConditionalDirectiveRecord *PPRec = nullptr)
49 : SourceMgr(SM), LangOpts(LangOpts), PPRec(PPRec), in SourceMgr()
55 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();
433 PPRec = new PPConditionalDirectiveRecord(PP.getSourceManager()); in CreateASTConsumer() local
434 PP.addPPCallbacks(PPRec); in CreateASTConsumer()
435 SKCtrl.reset(new TUSkipBodyControl(*SKData, *PPRec, PP)); in CreateASTConsumer()
DCursorVisitor.h192 PreprocessingRecord &PPRec,
DCIndex.cpp226 PreprocessingRecord &PPRec, in visitPreprocessedEntitiesInRange() argument
240 Entities = PPRec.getPreprocessedEntitiesInRange(R); in visitPreprocessedEntitiesInRange()
242 PPRec, FID); in visitPreprocessedEntitiesInRange()
395 PreprocessingRecord &PPRec in visitPreprocessedEntitiesInRegion() local
407 PPRec, *this); in visitPreprocessedEntitiesInRegion()
418 PPRec, *this); in visitPreprocessedEntitiesInRegion()
422 PPRec, *this); in visitPreprocessedEntitiesInRegion()
425 return visitPreprocessedEntitiesInRange(SourceRange(B, E), PPRec, *this); in visitPreprocessedEntitiesInRegion()
432 return visitPreprocessedEntities(PPRec.local_begin(), PPRec.local_end(), in visitPreprocessedEntitiesInRegion()
433 PPRec); in visitPreprocessedEntitiesInRegion()
[all …]
/external/clang/lib/ARCMigrate/
DObjCMT.cpp95 const PPConditionalDirectiveRecord *PPRec; member in __anonf83fd5c00111::ObjCMigrateASTConsumer
106 const PPConditionalDirectiveRecord *PPRec, in ObjCMigrateASTConsumer() argument
113 Remapper(remapper), FileMgr(fileMgr), PPRec(PPRec), PP(PP), in ObjCMigrateASTConsumer()
127 PPRec)); in Initialize()
191 PPRec = new PPConditionalDirectiveRecord(CompInst->getSourceManager()); in CreateASTConsumer() local
192 CompInst->getPreprocessor().addPPCallbacks(PPRec); in CreateASTConsumer()
199 PPRec, in CreateASTConsumer()
1871 PPRec = new PPConditionalDirectiveRecord(CI.getSourceManager()); in CreateASTConsumer() local
1883 CI.getPreprocessor().addPPCallbacks(PPRec); in CreateASTConsumer()
1890 PPRec, 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.cpp1917 PreprocessingRecord *PPRec = PP.getPreprocessingRecord(); in WritePreprocessor() local
1918 if (PPRec) in WritePreprocessor()
1919 WritePreprocessorDetail(*PPRec); in WritePreprocessor()
2057 if (PPRec) in WritePreprocessor()
2058 Record.push_back(MacroDefinitions[PPRec->findMacroDefinition(MI)]); in WritePreprocessor()
2119 void ASTWriter::WritePreprocessorDetail(PreprocessingRecord &PPRec) { in WritePreprocessorDetail() argument
2120 if (PPRec.local_begin() == PPRec.local_end()) in WritePreprocessorDetail()
2146 = (Chain ? PPRec.getNumLoadedPreprocessedEntities() : 0) in WritePreprocessorDetail()
2150 for (PreprocessingRecord::iterator E = PPRec.local_begin(), in WritePreprocessorDetail()
2151 EEnd = PPRec.local_end(); in WritePreprocessorDetail()
DASTReader.cpp1429 PreprocessingRecord &PPRec = *PP.getPreprocessingRecord(); in ReadMacroRecord() local
1431 PPID = PPRec.getPPEntityID(GlobalID-1, /*isLoaded=*/true); in ReadMacroRecord()
1433 cast_or_null<MacroDefinition>(PPRec.getPreprocessedEntity(PPID)); in ReadMacroRecord()
1435 PPRec.RegisterMacroDefinition(Macro, PPDef); in ReadMacroRecord()
4710 if (PreprocessingRecord *PPRec = PP.getPreprocessingRecord()) in getModulePreprocessedEntities() local
4711 return PPRec->getIteratorsForLoadedRange(Mod.BasePreprocessedEntityID, in getModulePreprocessedEntities()
4748 PreprocessingRecord &PPRec = *PP.getPreprocessingRecord(); in ReadPreprocessedEntity() local
4764 Def =cast<MacroDefinition>(PPRec.getLoadedPreprocessedEntity(GlobalID-1)); in ReadPreprocessedEntity()
4769 ME = new (PPRec) MacroExpansion(Name, Range); in ReadPreprocessedEntity()
4771 ME = new (PPRec) MacroExpansion(Def, Range); in ReadPreprocessedEntity()
[all …]
/external/clang/include/clang/Serialization/
DASTWriter.h463 void WritePreprocessorDetail(PreprocessingRecord &PPRec);
/external/clang/lib/Frontend/
DASTUnit.cpp2783 if (PreprocessingRecord *PPRec = PP->getPreprocessingRecord()) in getLocalPreprocessingEntities() local
2784 return std::make_pair(PPRec->local_begin(), PPRec->local_end()); in getLocalPreprocessingEntities()