| /llvm-project-15.0.7/clang/lib/Frontend/ |
| H A D | ModuleDependencyCollector.cpp | 28 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 D | FileCollectorTest.cpp | 174 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 D | PragmaCommentHandler.h | 29 PragmaCommentHandler(HeaderMapCollector *Collector) : Collector(Collector) {} in PragmaCommentHandler() argument 34 HeaderMapCollector *const Collector;
|
| H A D | FindAllSymbolsAction.cpp | 21 : Reporter(Reporter), Collector(RegexHeaderMap), Handler(&Collector), in FindAllSymbolsAction() 22 Matcher(Reporter, &Collector) { in FindAllSymbolsAction() 31 Reporter, &Compiler.getSourceManager(), &Collector)); in CreateASTConsumer()
|
| H A D | FindAllSymbols.h | 37 HeaderMapCollector *Collector = nullptr) 38 : Reporter(Reporter), Collector(Collector) {} in Reporter() 56 HeaderMapCollector *const Collector; variable
|
| H A D | FindAllMacros.h | 29 HeaderMapCollector *Collector = nullptr) 30 : Reporter(Reporter), SM(SM), Collector(Collector) {} in Reporter() 58 HeaderMapCollector *const Collector; variable
|
| H A D | PathConfig.cpp | 18 const HeaderMapCollector *Collector) { in getIncludePath() argument 33 if (Collector) in getIncludePath() 34 FilePath = Collector->getMappedHeader(FilePath); in getIncludePath()
|
| H A D | FindAllSymbols.cpp | 74 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 D | PathConfig.h | 31 const HeaderMapCollector *Collector = nullptr);
|
| H A D | PragmaCommentHandler.cpp | 29 Collector->addHeaderMapping( in HandleComment()
|
| H A D | FindAllSymbolsAction.h | 38 HeaderMapCollector Collector; variable
|
| H A D | FindAllMacros.cpp | 27 getIncludePath(*SM, info->getDefinitionLoc(), Collector); in CreateMacroSymbol()
|
| /llvm-project-15.0.7/llvm/lib/Support/ |
| H A D | FileCollector.cpp | 258 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 D | IndexAction.cpp | 137 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 D | FileIndex.cpp | 80 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 D | ClangTidyCheck.cpp | 67 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 D | ClangTidyDiagnosticConsumer.h | 205 void setOptionsCollector(llvm::StringSet<> *Collector) { in setOptionsCollector() argument 206 OptionsCollector = Collector; in setOptionsCollector()
|
| /llvm-project-15.0.7/clang/tools/clang-check/ |
| H A D | ClangCheck.cpp | 155 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 D | Tokens.cpp | 665 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 D | ClangTidyOptionsTest.cpp | 210 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 D | Headers.cpp | 244 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 D | FileCollector.h | 111 std::shared_ptr<FileCollector> Collector);
|
| /llvm-project-15.0.7/clang/unittests/Tooling/Syntax/ |
| H A D | TokensTest.cpp | 101 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 D | SymbolCollectorTests.cpp | 265 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 D | O0-pipeline.ll | 15 ; CHECK-NEXT: Create Garbage Collector Module Metadata
|