Home
last modified time | relevance | path

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

/llvm-project-15.0.7/clang/unittests/Lex/
H A DPPConditionalDirectiveRecordTest.cpp85 PPRec = new PPConditionalDirectiveRecord(SourceMgr); in TEST_F() local
86 PP.addPPCallbacks(std::unique_ptr<PPCallbacks>(PPRec)); in TEST_F()
101 EXPECT_FALSE(PPRec->rangeIntersectsConditionalDirective( in TEST_F()
103 EXPECT_TRUE(PPRec->rangeIntersectsConditionalDirective( in TEST_F()
105 EXPECT_FALSE(PPRec->rangeIntersectsConditionalDirective( in TEST_F()
107 EXPECT_TRUE(PPRec->rangeIntersectsConditionalDirective( in TEST_F()
109 EXPECT_TRUE(PPRec->rangeIntersectsConditionalDirective( in TEST_F()
111 EXPECT_FALSE(PPRec->rangeIntersectsConditionalDirective( in TEST_F()
113 EXPECT_FALSE(PPRec->rangeIntersectsConditionalDirective( in TEST_F()
115 EXPECT_TRUE(PPRec->rangeIntersectsConditionalDirective( in TEST_F()
[all …]
/llvm-project-15.0.7/clang/include/clang/Edit/
H A DEditedSource.h38 const PPConditionalDirectiveRecord *PPRec; variable
74 const PPConditionalDirectiveRecord *PPRec = nullptr)
75 : SourceMgr(SM), LangOpts(LangOpts), PPRec(PPRec), IdentTable(LangOpts) {} in SourceMgr()
81 return PPRec; in getPPCondDirectiveRecord()
H A DCommit.h54 const PPConditionalDirectiveRecord *PPRec; variable
65 const PPConditionalDirectiveRecord *PPRec = nullptr)
66 : SourceMgr(SM), LangOpts(LangOpts), PPRec(PPRec) {} in SourceMgr()
/llvm-project-15.0.7/clang/lib/Edit/
H A DCommit.cpp45 PPRec(Editor.getPPCondDirectiveRecord()), in Commit()
81 if (PPRec && in insertFromRange()
82 PPRec->areInDifferentConditionalDirectiveRegion(loc, range.getBegin())) { in insertFromRange()
309 if (PPRec && PPRec->rangeIntersectsConditionalDirective(range.getAsRange())) in canRemoveRange()
/llvm-project-15.0.7/clang/tools/libclang/
H A DIndexing.cpp149 PPConditionalDirectiveRecord &PPRec; member in __anon0c848fe50211::ParsedSrcLocationsTracker
167 : ParsedRegionsStorage(ParsedRegionsStorage), PPRec(ppRec), PP(pp), in ParsedSrcLocationsTracker()
212 SourceLocation RegionLoc = PPRec.findConditionalDirectiveRegionLoc(Loc); in getRegion()
220 PPRec.getSourceManager().getDecomposedLoc(RegionLoc); in getRegion()
364 auto *PPRec = new PPConditionalDirectiveRecord(PP.getSourceManager()); in CreateASTConsumer() local
365 PP.addPPCallbacks(std::unique_ptr<PPCallbacks>(PPRec)); in CreateASTConsumer()
367 std::make_unique<ParsedSrcLocationsTracker>(*SKData, *PPRec, PP); in CreateASTConsumer()
H A DCursorVisitor.h199 PreprocessingRecord &PPRec,
H A DCIndex.cpp254 const auto &Entities = PPRec.getPreprocessedEntitiesInRange(R); in visitPreprocessedEntitiesInRange()
256 PPRec, FID); in visitPreprocessedEntitiesInRange()
432 SourceRange(B, AU->getEndOfPreambleFileID()), PPRec, *this); in visitPreprocessedEntitiesInRegion()
436 SourceRange(AU->getStartOfMainFileID(), E), PPRec, *this); in visitPreprocessedEntitiesInRegion()
445 return visitPreprocessedEntities(PPRec.local_begin(), PPRec.local_end(), in visitPreprocessedEntitiesInRegion()
446 PPRec); in visitPreprocessedEntitiesInRegion()
448 return visitPreprocessedEntities(PPRec.begin(), PPRec.end(), PPRec); in visitPreprocessedEntitiesInRegion()
457 if (!FID.isInvalid() && !PPRec.isEntityInFileID(First, FID)) in visitPreprocessedEntities()
9314 PreprocessingRecord *PPRec = PP.getPreprocessingRecord(); in checkForMacroInMacroDefinition() local
9315 if (!PPRec) in checkForMacroInMacroDefinition()
[all …]
/llvm-project-15.0.7/clang/lib/ARCMigrate/
H A DObjCMT.cpp101 const PPConditionalDirectiveRecord *PPRec; member in __anon03f676b70111::ObjCMigrateASTConsumer
119 const PPConditionalDirectiveRecord *PPRec, in ObjCMigrateASTConsumer() argument
124 Remapper(remapper), FileMgr(fileMgr), PPRec(PPRec), PP(PP), in ObjCMigrateASTConsumer()
136 PPRec)); in Initialize()
199 PPRec = new PPConditionalDirectiveRecord(CompInst->getSourceManager()); in CreateASTConsumer() local
200 CI.getPreprocessor().addPPCallbacks(std::unique_ptr<PPCallbacks>(PPRec)); in CreateASTConsumer()
204 MigrateDir, ObjCMigAction, Remapper, CompInst->getFileManager(), PPRec, in CreateASTConsumer()
2011 PPRec = new PPConditionalDirectiveRecord(CI.getSourceManager()); in CreateASTConsumer() local
2023 CI.getPreprocessor().addPPCallbacks(std::unique_ptr<PPCallbacks>(PPRec)); in CreateASTConsumer()
2028 CI.getFileManager(), PPRec, CI.getPreprocessor(), in CreateASTConsumer()
/llvm-project-15.0.7/clang/lib/Lex/
H A DPreprocessingRecord.cpp42 InclusionDirective::InclusionDirective(PreprocessingRecord &PPRec, in InclusionDirective() argument
49 char *Memory = (char *)PPRec.Allocate(FileName.size() + 1, alignof(char)); in InclusionDirective()
/llvm-project-15.0.7/clang/include/clang/Lex/
H A DPreprocessingRecord.h247 InclusionDirective(PreprocessingRecord &PPRec, InclusionKind Kind,
/llvm-project-15.0.7/clang/lib/Serialization/
H A DASTWriter.cpp2283 PreprocessingRecord *PPRec = PP.getPreprocessingRecord(); in WritePreprocessor() local
2284 if (PPRec) in WritePreprocessor()
2285 WritePreprocessorDetail(*PPRec, MacroOffsetsBase); in WritePreprocessor()
2485 if (PPRec) in WritePreprocessor()
2486 Record.push_back(MacroDefinitions[PPRec->findMacroDefinition(MI)]); in WritePreprocessor()
2539 void ASTWriter::WritePreprocessorDetail(PreprocessingRecord &PPRec, in WritePreprocessorDetail() argument
2541 if (PPRec.local_begin() == PPRec.local_end()) in WritePreprocessorDetail()
2567 = (Chain ? PPRec.getNumLoadedPreprocessedEntities() : 0) in WritePreprocessorDetail()
2571 for (PreprocessingRecord::iterator E = PPRec.local_begin(), in WritePreprocessorDetail()
2572 EEnd = PPRec.local_end(); in WritePreprocessorDetail()
[all …]
H A DASTReader.cpp1809 PreprocessingRecord &PPRec = *PP.getPreprocessingRecord(); in ReadMacroRecord() local
1811 PPRec.getPPEntityID(GlobalID - 1, /*isLoaded=*/true); in ReadMacroRecord()
1813 PPRec.getPreprocessedEntity(PPID)); in ReadMacroRecord()
1815 PPRec.RegisterMacroDefinition(Macro, PPDef); in ReadMacroRecord()
5971 if (PreprocessingRecord *PPRec = PP.getPreprocessingRecord()) in getModulePreprocessedEntities() local
5972 return PPRec->getIteratorsForLoadedRange(Mod.BasePreprocessedEntityID, in getModulePreprocessedEntities()
6040 PreprocessingRecord &PPRec = *PP.getPreprocessingRecord(); in ReadPreprocessedEntity() local
6060 PPRec.getLoadedPreprocessedEntity(GlobalID - 1)); in ReadPreprocessedEntity()
6065 ME = new (PPRec) MacroExpansion(Name, Range); in ReadPreprocessedEntity()
6067 ME = new (PPRec) MacroExpansion(Def, Range); in ReadPreprocessedEntity()
[all …]
/llvm-project-15.0.7/clang/include/clang/Serialization/
H A DASTWriter.h475 void WritePreprocessorDetail(PreprocessingRecord &PPRec,
/llvm-project-15.0.7/clang/lib/Frontend/
H A DASTUnit.cpp2583 if (PreprocessingRecord *PPRec = PP->getPreprocessingRecord()) in getLocalPreprocessingEntities() local
2584 return llvm::make_range(PPRec->local_begin(), PPRec->local_end()); in getLocalPreprocessingEntities()