/external/clang/unittests/Lex/ |
D | PPConditionalDirectiveRecordTest.cpp | 104 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/ |
D | EditedSource.h | 32 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()
|
D | Commit.h | 50 const PPConditionalDirectiveRecord *PPRec; variable 61 const PPConditionalDirectiveRecord *PPRec = nullptr) 62 : SourceMgr(SM), LangOpts(LangOpts), PPRec(PPRec), Editor(nullptr), in SourceMgr()
|
/external/clang/lib/Edit/ |
D | Commit.cpp | 40 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/ |
D | Indexing.cpp | 151 PPConditionalDirectiveRecord &PPRec; member in __anone24f30970211::TUSkipBodyControl 163 : SessionData(sessionData), PPRec(ppRec), PP(pp) { in TUSkipBodyControl() 189 SourceLocation RegionLoc = PPRec.findConditionalDirectiveRegionLoc(Loc); in getRegion() 198 const SourceManager &SM = PPRec.getSourceManager(); in getRegion() 377 auto *PPRec = new PPConditionalDirectiveRecord(PP.getSourceManager()); in CreateASTConsumer() local 378 PP.addPPCallbacks(std::unique_ptr<PPCallbacks>(PPRec)); in CreateASTConsumer() 379 SKCtrl = llvm::make_unique<TUSkipBodyControl>(*SKData, *PPRec, PP); in CreateASTConsumer()
|
D | CursorVisitor.h | 192 PreprocessingRecord &PPRec,
|
D | CIndex.cpp | 228 PreprocessingRecord &PPRec, in visitPreprocessedEntitiesInRange() argument 241 const auto &Entities = PPRec.getPreprocessedEntitiesInRange(R); in visitPreprocessedEntitiesInRange() 243 PPRec, FID); in visitPreprocessedEntitiesInRange() 396 PreprocessingRecord &PPRec in visitPreprocessedEntitiesInRegion() local 408 PPRec, *this); in visitPreprocessedEntitiesInRegion() 419 PPRec, *this); in visitPreprocessedEntitiesInRegion() 423 PPRec, *this); in visitPreprocessedEntitiesInRegion() 426 return visitPreprocessedEntitiesInRange(SourceRange(B, E), PPRec, *this); in visitPreprocessedEntitiesInRegion() 433 return visitPreprocessedEntities(PPRec.local_begin(), PPRec.local_end(), in visitPreprocessedEntitiesInRegion() 434 PPRec); in visitPreprocessedEntitiesInRegion() [all …]
|
/external/clang/lib/ARCMigrate/ |
D | ObjCMT.cpp | 98 const PPConditionalDirectiveRecord *PPRec; member in __anon04dd42e90111::ObjCMigrateASTConsumer 110 const PPConditionalDirectiveRecord *PPRec, in ObjCMigrateASTConsumer() argument 117 Remapper(remapper), FileMgr(fileMgr), PPRec(PPRec), PP(PP), in ObjCMigrateASTConsumer() 131 PPRec)); in Initialize() 196 PPRec = new PPConditionalDirectiveRecord(CompInst->getSourceManager()); in CreateASTConsumer() local 197 CI.getPreprocessor().addPPCallbacks(std::unique_ptr<PPCallbacks>(PPRec)); in CreateASTConsumer() 201 MigrateDir, ObjCMigAction, Remapper, CompInst->getFileManager(), PPRec, in CreateASTConsumer() 2013 PPRec = new PPConditionalDirectiveRecord(CI.getSourceManager()); in CreateASTConsumer() local 2025 CI.getPreprocessor().addPPCallbacks(std::unique_ptr<PPCallbacks>(PPRec)); in CreateASTConsumer() 2030 CI.getFileManager(), PPRec, CI.getPreprocessor(), in CreateASTConsumer()
|
/external/clang/lib/Lex/ |
D | PreprocessingRecord.cpp | 25 InclusionDirective::InclusionDirective(PreprocessingRecord &PPRec, in InclusionDirective() argument 35 = (char*)PPRec.Allocate(FileName.size() + 1, llvm::alignOf<char>()); in InclusionDirective()
|
/external/clang/include/clang/Lex/ |
D | PreprocessingRecord.h | 233 InclusionDirective(PreprocessingRecord &PPRec,
|
/external/clang/lib/Serialization/ |
D | ASTWriter.cpp | 2130 PreprocessingRecord *PPRec = PP.getPreprocessingRecord(); in WritePreprocessor() local 2131 if (PPRec) in WritePreprocessor() 2132 WritePreprocessorDetail(*PPRec); in WritePreprocessor() 2275 if (PPRec) in WritePreprocessor() 2276 Record.push_back(MacroDefinitions[PPRec->findMacroDefinition(MI)]); in WritePreprocessor() 2313 void ASTWriter::WritePreprocessorDetail(PreprocessingRecord &PPRec) { in WritePreprocessorDetail() argument 2314 if (PPRec.local_begin() == PPRec.local_end()) in WritePreprocessorDetail() 2340 = (Chain ? PPRec.getNumLoadedPreprocessedEntities() : 0) in WritePreprocessorDetail() 2344 for (PreprocessingRecord::iterator E = PPRec.local_begin(), in WritePreprocessorDetail() 2345 EEnd = PPRec.local_end(); in WritePreprocessorDetail()
|
D | ASTReader.cpp | 1493 PreprocessingRecord &PPRec = *PP.getPreprocessingRecord(); in ReadMacroRecord() local 1495 PPRec.getPPEntityID(GlobalID - 1, /*isLoaded=*/true); in ReadMacroRecord() 1497 PPRec.getPreprocessedEntity(PPID)); in ReadMacroRecord() 1499 PPRec.RegisterMacroDefinition(Macro, PPDef); in ReadMacroRecord() 4860 if (PreprocessingRecord *PPRec = PP.getPreprocessingRecord()) in getModulePreprocessedEntities() local 4861 return PPRec->getIteratorsForLoadedRange(Mod.BasePreprocessedEntityID, in getModulePreprocessedEntities() 4899 PreprocessingRecord &PPRec = *PP.getPreprocessingRecord(); in ReadPreprocessedEntity() local 4916 PPRec.getLoadedPreprocessedEntity(GlobalID - 1)); in ReadPreprocessedEntity() 4921 ME = new (PPRec) MacroExpansion(Name, Range); in ReadPreprocessedEntity() 4923 ME = new (PPRec) MacroExpansion(Def, Range); in ReadPreprocessedEntity() [all …]
|
/external/clang/include/clang/Serialization/ |
D | ASTWriter.h | 435 void WritePreprocessorDetail(PreprocessingRecord &PPRec);
|
/external/clang/lib/Frontend/ |
D | ASTUnit.cpp | 2770 if (PreprocessingRecord *PPRec = PP->getPreprocessingRecord()) in getLocalPreprocessingEntities() local 2771 return llvm::make_range(PPRec->local_begin(), PPRec->local_end()); in getLocalPreprocessingEntities()
|