Home
last modified time | relevance | path

Searched refs:Factory (Results 1 – 25 of 95) sorted by relevance

1234

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/
H A DClangTidyModule.cpp20 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 DClangTidy.cpp491 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 DBlockCounter.cpp53 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 DRangeConstraintManager.cpp111 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 DImmutableMap.h83 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 DImmutableSet.h48 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 DProgramStateTrait.h151 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 DBlockCounter.h40 class Factory {
43 Factory(llvm::BumpPtrAllocator& Alloc);
44 ~Factory();
52 friend class Factory; variable
H A DRangedConstraintManager.h73 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 DImmutableListTest.cpp38 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 DImmutableSetTest.cpp37 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 DImmutableMapTest.cpp17 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 DClangReorderFields.cpp68 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 DUninitializedObject.h165 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 DBackground.h57 using Factory = llvm::unique_function<BackgroundIndexStorage *(PathRef)>; variable
63 static Factory createDiskBackedStorageFactory(
152 BackgroundIndexStorage::Factory IndexStorageFactory,
209 BackgroundIndexStorage::Factory IndexStorageFactory;
H A DBackgroundIndexLoader.cpp28 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 DASTMatchersInternalTest.cpp211 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 DASTMatchersTest.h97 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 Dfunc.blocks.arc.pass.mm32 Foo Factory(std::size_t (^bl)()) { function
39 return Factory(^() {
76 auto f = Factory(^() {
/llvm-project-15.0.7/clang/unittests/AST/
H A DASTPrint.h85 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 Dallocate_shared_construct.pass.cpp68 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 Dxray-graph-diff.h47 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 DClangTidyPlugin.cpp49 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 Dlldb-gdbserver.cpp65 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 DClangRename.cpp186 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()

1234