| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/ |
| H A D | ClangTidyModule.cpp | 20 CheckFactory Factory) { in registerCheckFactory() argument 21 Factories.insert_or_assign(Name, std::move(Factory)); in registerCheckFactory() 27 for (const auto &Factory : Factories) { in createChecks() local 28 if (Context->isCheckEnabled(Factory.getKey())) in createChecks() 29 Checks.emplace_back(Factory.getValue()(Factory.getKey(), Context)); in createChecks() 38 for (const auto &Factory : Factories) { in createChecksForLanguage() local 39 if (!Context->isCheckEnabled(Factory.getKey())) in createChecksForLanguage() 42 Factory.getValue()(Factory.getKey(), Context); in createChecksForLanguage()
|
| H A D | ClangTidy.cpp | 491 ClangTidyASTConsumerFactory Factory(Context); in getCheckNames() local 492 return Factory.getCheckNames(); in getCheckNames() 502 ClangTidyASTConsumerFactory Factory(Context); in getCheckOptions() local 503 return Factory.getCheckOptions(); in getCheckOptions() 567 Action(ClangTidyASTConsumerFactory *Factory) : Factory(Factory) {} in runClangTidy() argument 574 ClangTidyASTConsumerFactory *Factory; in runClangTidy() member in clang::tidy::runClangTidy::ActionFactory::Action 581 Tool.run(&Factory); in runClangTidy() 640 for (const auto &Factory : Factories) in getAllChecksAndOptions() local 641 Result.Names.insert(Factory.getKey()); in getAllChecksAndOptions() 655 for (const auto &Factory : Factories) { in getAllChecksAndOptions() local [all …]
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/ |
| H A D | BlockCounter.cpp | 53 static inline CountMap::Factory& GetFactory(void *F) { in GetFactory() 54 return *static_cast<CountMap::Factory*>(F); in GetFactory() 64 BlockCounter::Factory::Factory(llvm::BumpPtrAllocator& Alloc) { in Factory() function in BlockCounter::Factory 65 F = new CountMap::Factory(Alloc); in Factory() 68 BlockCounter::Factory::~Factory() { in ~Factory() 69 delete static_cast<CountMap::Factory*>(F); in ~Factory() 73 BlockCounter::Factory::IncrementCount(BlockCounter BC, in IncrementCount() 82 BlockCounter::Factory::GetEmptyCounter() { in GetEmptyCounter()
|
| H A D | RangeConstraintManager.cpp | 111 RangeSet::ContainerType RangeSet::Factory::EmptySet{}; 610 RangeSet RangeSet::Factory::negate(RangeSet What) { in negate() 962 getDisequalClasses(DisequalityMapTy Map, ClassSet::Factory &Factory) const; 1620 RangeSet::Factory &RangeFactory; 1871 RangeSet::Factory F; 2035 RangeSet::Factory &F) in ConstraintAssignor() 2115 RangeSet::Factory &RangeFactory; 2398 inline SymbolSet::Factory & 2669 ClassSet::Factory &Factory) const { in getDisequalClasses() 2673 return Factory.getEmptySet(); in getDisequalClasses() [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/ADT/ |
| H A D | ImmutableMap.h | 83 class Factory { 84 typename TreeTy::Factory F; 93 Factory(const Factory &) = delete; 94 Factory &operator=(const Factory &) = delete; 109 typename TreeTy::Factory *getTreeFactory() const { in getTreeFactory() 212 using FactoryTy = typename TreeTy::Factory; 216 FactoryTy *Factory; variable 224 : Root(const_cast<TreeTy *>(R)), Factory(F) {} in ImmutableMapRef() 245 return ImmutableMapRef(NewT, Factory); in add() 249 TreeTy *NewT = Factory->remove(Root.get(), K); in remove() [all …]
|
| H A D | ImmutableSet.h | 48 using Factory = ImutAVLFactory<ImutInfo>; variable 209 Factory *factory; 973 class Factory { 974 typename TreeTy::Factory F; 978 Factory(bool canonicalize = true) 984 Factory(const Factory& RHS) = delete; 1023 friend class Factory; 1088 using FactoryTy = typename TreeTy::Factory; 1092 FactoryTy *Factory; 1106 return ImmutableSetRef(Factory->add(Root.get(), V), Factory); [all …]
|
| /llvm-project-15.0.7/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
| H A D | ProgramStateTrait.h | 151 using context_type = typename data_type::Factory &; 183 return *((typename data_type::Factory *) p); 187 return new typename data_type::Factory(Alloc); 191 delete (typename data_type::Factory *) Ctx; 199 using context_type = typename data_type::Factory &; 224 return *((typename data_type::Factory *) p); 228 return new typename data_type::Factory(Alloc); 232 delete (typename data_type::Factory *) Ctx; 261 return *((typename data_type::Factory *) p); 265 return new typename data_type::Factory(Alloc); [all …]
|
| H A D | BlockCounter.h | 40 class Factory { 43 Factory(llvm::BumpPtrAllocator& Alloc); 44 ~Factory(); 52 friend class Factory; variable
|
| H A D | RangedConstraintManager.h | 73 class Factory; 121 class Factory { 123 Factory(BasicValueFactory &BV) : ValueFactory(BV) {} in Factory() function 314 RangeSet(Factory &F, const llvm::APSInt &From, const llvm::APSInt &To) in RangeSet() 318 RangeSet(Factory &F, const llvm::APSInt &Point) in RangeSet() 401 friend class Factory; variable
|
| /llvm-project-15.0.7/llvm/unittests/ADT/ |
| H A D | ImmutableListTest.cpp | 38 ImmutableList<Wrapper<int>>::Factory f; in TEST_F() 51 ImmutableList<Wrapper<int>>::Factory f; in TEST_F() 101 ImmutableList<const Unmodifiable &>::Factory f; in TEST_F() 113 ImmutableList<Wrapper<int>>::Factory f; in TEST_F() 126 ImmutableList<Wrapper<int>>::Factory f; in TEST_F() 192 ImmutableList<ExplicitCtorWrapper<int>>::Factory f; in TEST_F() 226 ImmutableList<Wrapper<char>>::Factory f; in TEST_F() 239 ImmutableList<Wrapper<long>>::Factory f; in TEST_F()
|
| H A D | ImmutableSetTest.cpp | 37 ImmutableSet<int>::Factory f; in TEST_F() 51 ImmutableSet<int>::Factory f; in TEST_F() 79 ImmutableSet<int>::Factory f; in TEST_F() 117 ImmutableSet<int>::Factory f; in TEST_F() 140 ImmutableSet<long>::Factory f; in TEST_F()
|
| H A D | ImmutableMapTest.cpp | 17 ImmutableMap<int, int>::Factory f; in TEST() 30 ImmutableMap<int, int>::Factory f; in TEST() 85 ImmutableMap<int, ImmutableMapRef<int, int>>::Factory f; in TEST()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-reorder-fields/tool/ |
| H A D | ClangReorderFields.cpp | 68 auto Factory = tooling::newFrontendActionFactory(&Action); in main() local 71 return Tool.runAndSave(Factory.get()); in main() 73 int ExitCode = Tool.run(Factory.get()); in main()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/UninitializedObject/ |
| H A D | UninitializedObject.h | 165 FieldChain::Factory &ChainFactory; 168 FieldChainInfo(FieldChain::Factory &F, FieldChain NewChain) in FieldChainInfo() 175 FieldChainInfo(FieldChain::Factory &F) : ChainFactory(F) {} in FieldChainInfo() 204 FieldChainInfo::FieldChain::Factory ChainFactory;
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/index/ |
| H A D | Background.h | 57 using Factory = llvm::unique_function<BackgroundIndexStorage *(PathRef)>; variable 63 static Factory createDiskBackedStorageFactory( 152 BackgroundIndexStorage::Factory IndexStorageFactory, 209 BackgroundIndexStorage::Factory IndexStorageFactory;
|
| H A D | BackgroundIndexLoader.cpp | 28 BackgroundIndexLoader(BackgroundIndexStorage::Factory &IndexStorageFactory) in BackgroundIndexLoader() 46 BackgroundIndexStorage::Factory &IndexStorageFactory; 121 BackgroundIndexStorage::Factory &IndexStorageFactory, in loadIndexShards()
|
| /llvm-project-15.0.7/clang/unittests/ASTMatchers/ |
| H A D | ASTMatchersInternalTest.cpp | 211 std::unique_ptr<FrontendActionFactory> Factory( in TEST() local 213 ASSERT_TRUE(tooling::runToolOnCode(Factory->create(), "int x;")); in TEST() 233 std::unique_ptr<FrontendActionFactory> Factory( in TEST() local 235 ASSERT_TRUE(tooling::runToolOnCode(Factory->create(), "int x;")); in TEST() 259 std::unique_ptr<FrontendActionFactory> Factory( in TEST() local 261 ASSERT_TRUE(tooling::runToolOnCode(Factory->create(), "int x;")); in TEST()
|
| H A D | ASTMatchersTest.h | 97 std::unique_ptr<FrontendActionFactory> Factory( 123 Factory->create(), Code, Args, Filename, "clang-tool", 224 std::unique_ptr<FrontendActionFactory> Factory( in matchesConditionallyWithCuda() 232 if (!runToolOnCodeWithArgs(Factory->create(), CudaHeader + Code, Args)) { in matchesConditionallyWithCuda() 296 std::unique_ptr<FrontendActionFactory> Factory( in matchAndVerifyResultConditionally() 303 if (!runToolOnCodeWithArgs(Factory->create(), Code, Args)) { in matchAndVerifyResultConditionally()
|
| /llvm-project-15.0.7/libcxx/test/libcxx/utilities/function.objects/ |
| H A D | func.blocks.arc.pass.mm | 32 Foo Factory(std::size_t (^bl)()) { function 39 return Factory(^() { 76 auto f = Factory(^() {
|
| /llvm-project-15.0.7/clang/unittests/AST/ |
| H A D | ASTPrint.h | 85 std::unique_ptr<tooling::FrontendActionFactory> Factory( 90 ToolResult = tooling::runToolOnCodeWithArgs(Factory->create(), Code, Args); 93 tooling::runToolOnCodeWithArgs(Factory->create(), Code, Args, FileName);
|
| /llvm-project-15.0.7/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/ |
| H A D | allocate_shared_construct.pass.cpp | 68 class Factory { class 101 std::shared_ptr<Private> Factory::allocate() { in allocate() 166 std::shared_ptr<Private> p = Factory().allocate(); in main()
|
| /llvm-project-15.0.7/llvm/tools/llvm-xray/ |
| H A D | xray-graph-diff.h | 47 class Factory { 51 template <typename... Ts> Factory(Ts &... Args) : G{{Args...}} {} in Factory() function
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/plugin/ |
| H A D | ClangTidyPlugin.cpp | 49 ClangTidyASTConsumerFactory Factory(*Context); in CreateASTConsumer() local 51 Vec.push_back(Factory.createASTConsumer(Compiler, File)); in CreateASTConsumer()
|
| /llvm-project-15.0.7/lldb/tools/lldb-server/ |
| H A D | lldb-gdbserver.cpp | 65 typedef process_linux::NativeProcessLinux::Factory NativeProcessFactory; 67 typedef process_freebsd::NativeProcessFreeBSD::Factory NativeProcessFactory; 69 typedef process_netbsd::NativeProcessNetBSD::Factory NativeProcessFactory; 71 typedef NativeProcessWindows::Factory NativeProcessFactory; 74 class NativeProcessFactory : public NativeProcessProtocol::Factory {
|
| /llvm-project-15.0.7/clang/tools/clang-rename/ |
| H A D | ClangRename.cpp | 186 std::unique_ptr<tooling::FrontendActionFactory> Factory = in main() local 191 ExitCode = Tool.runAndSave(Factory.get()); in main() 193 ExitCode = Tool.run(Factory.get()); in main()
|