Home
last modified time | relevance | path

Searched refs:Collector (Results 1 – 25 of 43) sorted by relevance

12

/llvm-project-15.0.7/clang/lib/Frontend/
H A DModuleDependencyCollector.cpp28 ModuleDependencyCollector &Collector; member in __anonddb9f1e50111::ModuleDependencyListener
30 ModuleDependencyListener(ModuleDependencyCollector &Collector) in ModuleDependencyListener() argument
31 : Collector(Collector) {} in ModuleDependencyListener()
36 Collector.addFile(Filename); in visitInputFile()
42 ModuleDependencyCollector &Collector; member
44 ModuleDependencyPPCallbacks(ModuleDependencyCollector &Collector, in ModuleDependencyPPCallbacks()
46 : Collector(Collector), SM(SM) {} in ModuleDependencyPPCallbacks()
56 Collector.addFile(File->getName()); in InclusionDirective()
61 ModuleDependencyCollector &Collector; member
63 : Collector(Collector) {} in ModuleDependencyMMCallbacks()
[all …]
/llvm-project-15.0.7/llvm/unittests/Support/
H A DFileCollectorTest.cpp174 auto Collector = std::make_shared<TestingFileCollector>(root_fs, root_fs); in TEST() local
176 FileCollector::createCollectorVFS(vfs::getRealFileSystem(), Collector); in TEST()
178 EXPECT_TRUE(Collector->hasSeen(a.path())); in TEST()
181 EXPECT_TRUE(Collector->hasSeen(b.path())); in TEST()
184 EXPECT_TRUE(Collector->hasSeen(subdir.path())); in TEST()
190 EXPECT_TRUE(Collector->hasSeen(subdir3.path())); in TEST()
191 EXPECT_TRUE(Collector->hasSeen(subdir3a.path())); in TEST()
192 EXPECT_TRUE(Collector->hasSeen(subdir3b.path())); in TEST()
194 EXPECT_FALSE(Collector->hasSeen(RemovedFileName)); in TEST()
274 EXPECT_TRUE(Collector->hasSeen(a.path())); in TEST()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-include-fixer/find-all-symbols/
H A DPragmaCommentHandler.h29 PragmaCommentHandler(HeaderMapCollector *Collector) : Collector(Collector) {} in PragmaCommentHandler() argument
34 HeaderMapCollector *const Collector;
H A DFindAllSymbolsAction.cpp21 : Reporter(Reporter), Collector(RegexHeaderMap), Handler(&Collector), in FindAllSymbolsAction()
22 Matcher(Reporter, &Collector) { in FindAllSymbolsAction()
31 Reporter, &Compiler.getSourceManager(), &Collector)); in CreateASTConsumer()
H A DFindAllSymbols.h37 HeaderMapCollector *Collector = nullptr)
38 : Reporter(Reporter), Collector(Collector) {} in Reporter()
56 HeaderMapCollector *const Collector; variable
H A DFindAllMacros.h29 HeaderMapCollector *Collector = nullptr)
30 : Reporter(Reporter), SM(SM), Collector(Collector) {} in Reporter()
58 HeaderMapCollector *const Collector; variable
H A DPathConfig.cpp18 const HeaderMapCollector *Collector) { in getIncludePath() argument
33 if (Collector) in getIncludePath()
34 FilePath = Collector->getMappedHeader(FilePath); in getIncludePath()
H A DFindAllSymbols.cpp74 const HeaderMapCollector *Collector) { in CreateSymbolInfo() argument
108 std::string FilePath = getIncludePath(SM, Loc, Collector); in CreateSymbolInfo()
253 if (auto Symbol = CreateSymbolInfo(ND, *SM, Collector)) { in run()
H A DPathConfig.h31 const HeaderMapCollector *Collector = nullptr);
H A DPragmaCommentHandler.cpp29 Collector->addHeaderMapping( in HandleComment()
H A DFindAllSymbolsAction.h38 HeaderMapCollector Collector; variable
H A DFindAllMacros.cpp27 getIncludePath(*SM, info->getDefinitionLoc(), Collector); in CreateMacroSymbol()
/llvm-project-15.0.7/llvm/lib/Support/
H A DFileCollector.cpp258 std::shared_ptr<FileCollector> Collector) in FileCollectorFileSystem() argument
259 : FS(std::move(FS)), Collector(std::move(Collector)) {} in FileCollectorFileSystem()
264 Collector->addFile(Path); in status()
272 Collector->addFile(Path); in openFileForRead()
278 return Collector->addDirectoryImpl(Dir, FS, EC); in dir_begin()
285 Collector->addFile(Path); in getRealPath()
287 Collector->addFile(Output); in getRealPath()
306 std::shared_ptr<FileCollector> Collector; member in llvm::FileCollectorFileSystem
313 std::shared_ptr<FileCollector> Collector) { in createCollectorVFS() argument
314 return new FileCollectorFileSystem(std::move(BaseFS), std::move(Collector)); in createCollectorVFS()
/llvm-project-15.0.7/clang-tools-extra/clangd/index/
H A DIndexAction.cpp137 IncludeGraphCallback(IncludeGraphCallback), Collector(C), in IndexAction()
151 return Collector->shouldIndexFile(FID); in IndexAction()
163 return index::createIndexingASTConsumer(Collector, Opts, in CreateASTConsumer()
183 SymbolsCallback(Collector->takeSymbols()); in EndSourceFileAction()
185 RefsCallback(Collector->takeRefs()); in EndSourceFileAction()
187 RelationsCallback(Collector->takeRelations()); in EndSourceFileAction()
203 std::shared_ptr<SymbolCollector> Collector; member in clang::clangd::__anon5be1d7680111::IndexAction
H A DFileIndex.cpp80 SymbolCollector Collector(std::move(CollectorOpts)); in indexSymbols() local
81 Collector.setPreprocessor(PP); in indexSymbols()
82 index::indexTopLevelDecls(AST, PP, DeclsToIndex, Collector, IndexOpts); in indexSymbols()
84 Collector.handleMacros(*MacroRefsToIndex); in indexSymbols()
91 auto Syms = Collector.takeSymbols(); in indexSymbols()
92 auto Refs = Collector.takeRefs(); in indexSymbols()
93 auto Relations = Collector.takeRelations(); in indexSymbols()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/
H A DClangTidyCheck.cpp67 llvm::StringSet<> *Collector) { in findPriorityOption() argument
68 if (Collector) { in findPriorityOption()
69 Collector->insert((NamePrefix + LocalName).str()); in findPriorityOption()
70 Collector->insert(LocalName); in findPriorityOption()
H A DClangTidyDiagnosticConsumer.h205 void setOptionsCollector(llvm::StringSet<> *Collector) { in setOptionsCollector() argument
206 OptionsCollector = Collector; in setOptionsCollector()
/llvm-project-15.0.7/clang/tools/clang-check/
H A DClangCheck.cpp155 Consumer(clang::CompilerInstance &CI) : Collector(CI.getPreprocessor()) {} in CreateASTConsumer()
158 clang::syntax::TokenBuffer TB = std::move(Collector).consume(); in CreateASTConsumer()
169 clang::syntax::TokenCollector Collector; in CreateASTConsumer() member in __anon5d6544660111::DumpSyntaxTree::CreateASTConsumer::Consumer
/llvm-project-15.0.7/clang/lib/Tooling/Syntax/
H A DTokens.cpp665 CollectPPExpansions(TokenCollector &C) : Collector(&C) {} in CollectPPExpansions()
670 void disable() { Collector = nullptr; } in disable()
674 if (!Collector) in MacroExpands()
676 const auto &SM = Collector->PP.getSourceManager(); in MacroExpands()
704 assert(Collector->Expansions.count(Range.getBegin()) && in MacroExpands()
708 Collector->Expansions[Range.getBegin()] = Range.getEnd(); in MacroExpands()
713 TokenCollector *Collector; member in TokenCollector::CollectPPExpansions
748 this->Collector = CB.get(); in TokenCollector()
945 Collector->disable(); in consume()
/llvm-project-15.0.7/clang-tools-extra/unittests/clang-tidy/
H A DClangTidyOptionsTest.cpp210 DiagCollecter Collector; in TEST() local
213 Collector.getCallback()); in TEST()
220 EXPECT_THAT(Collector.getDiags(), in TEST()
231 EXPECT_THAT(Collector.getDiags(), in TEST()
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DHeaders.cpp244 auto Collector = std::make_unique<RecordHeaders>(CI, this); in collect() local
245 CI.getPreprocessor().addCommentHandler(Collector.get()); in collect()
246 CI.getPreprocessor().addPPCallbacks(std::move(Collector)); in collect()
/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DFileCollector.h111 std::shared_ptr<FileCollector> Collector);
/llvm-project-15.0.7/clang/unittests/Tooling/Syntax/
H A DTokensTest.cpp101 assert(!Collector && "expected only a single call to BeginSourceFile"); in recordTokens()
102 Collector.emplace(CI.getPreprocessor()); in recordTokens()
106 assert(Collector && "BeginSourceFileAction was never called"); in recordTokens()
107 Result = std::move(*Collector).consume(); in recordTokens()
118 llvm::Optional<TokenCollector> Collector; in recordTokens() member in __anona82596db0111::TokenCollectorTest::recordTokens::RecordTokens
/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/
H A DSymbolCollectorTests.cpp265 Collector = std::make_shared<SymbolCollector>(COpts); in create()
266 return std::make_unique<IndexAction>(Collector, std::move(IndexOpts), in create()
270 std::shared_ptr<SymbolCollector> Collector; member in clang::clangd::__anon3932027d0111::SymbolIndexActionFactory
311 Symbols = Factory->Collector->takeSymbols();
312 Refs = Factory->Collector->takeRefs();
313 Relations = Factory->Collector->takeRelations();
/llvm-project-15.0.7/llvm/test/CodeGen/RISCV/
H A DO0-pipeline.ll15 ; CHECK-NEXT: Create Garbage Collector Module Metadata

12