| /llvm-project/llvm/include/llvm/ADT/ |
| H A D | IntrusiveRefCntPtr.h | 173 template <typename T> class IntrusiveRefCntPtr { 179 explicit IntrusiveRefCntPtr() = default; 180 IntrusiveRefCntPtr(T *obj) : Obj(obj) { retain(); } in IntrusiveRefCntPtr() function 181 IntrusiveRefCntPtr(const IntrusiveRefCntPtr &S) : Obj(S.Obj) { retain(); } in IntrusiveRefCntPtr() function 182 IntrusiveRefCntPtr(IntrusiveRefCntPtr &&S) : Obj(S.Obj) { S.Obj = nullptr; } in IntrusiveRefCntPtr() function 186 IntrusiveRefCntPtr(IntrusiveRefCntPtr<X> S) : Obj(S.get()) { in IntrusiveRefCntPtr() function 192 IntrusiveRefCntPtr(std::unique_ptr<X> S) : Obj(S.release()) { in IntrusiveRefCntPtr() function 196 ~IntrusiveRefCntPtr() { release(); } in ~IntrusiveRefCntPtr() 198 IntrusiveRefCntPtr &operator=(IntrusiveRefCntPtr S) { 208 void swap(IntrusiveRefCntPtr &other) { in swap() [all …]
|
| /llvm-project/llvm/unittests/ADT/ |
| H A D | IntrusiveRefCntPtrTest.cpp | 37 IntrusiveRefCntPtr<TypeParam> R1 = S1; in TYPED_TEST() 39 IntrusiveRefCntPtr<TypeParam> R2 = S2; in TYPED_TEST() 49 IntrusiveRefCntPtr<TypeParam> R1 = std::move(S1); in TYPED_TEST() 63 std::is_same<decltype(S1), IntrusiveRefCntPtr<TypeParam>>::value, in TYPED_TEST() 66 std::is_same<decltype(S2), IntrusiveRefCntPtr<const TypeParam>>::value, in TYPED_TEST() 88 TEST(IntrusiveRefCntPtr, UsesTraitsToRetainAndRelease) { in TEST() argument 93 IntrusiveRefCntPtr<InterceptRefCounted> R = I; in TEST() 105 !std::is_convertible_v<IntrusiveRefCntPtr<X> &&, IntrusiveRefCntPtr<Y>>, 107 static_assert(!std::is_convertible_v<const IntrusiveRefCntPtr<X> &, 108 IntrusiveRefCntPtr<Y>>, [all …]
|
| /llvm-project/clang/unittests/Driver/ |
| H A D | ToolChainTest.cpp | 40 IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts = new DiagnosticOptions(); in TEST() 42 IntrusiveRefCntPtr<DiagnosticIDs> DiagID(new DiagnosticIDs()); in TEST() 44 IntrusiveRefCntPtr<llvm::vfs::InMemoryFileSystem> InMemoryFileSystem( in TEST() 136 IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts = new DiagnosticOptions(); in TEST() 138 IntrusiveRefCntPtr<DiagnosticIDs> DiagID(new DiagnosticIDs()); in TEST() 141 IntrusiveRefCntPtr<llvm::vfs::InMemoryFileSystem> InMemoryFileSystem( in TEST() 175 IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts = new DiagnosticOptions(); in TEST() 177 IntrusiveRefCntPtr<DiagnosticIDs> DiagID(new DiagnosticIDs()); in TEST() 179 IntrusiveRefCntPtr<llvm::vfs::InMemoryFileSystem> InMemoryFileSystem( in TEST() 339 IntrusiveRefCntPtr<DiagnosticOption in TEST() [all...] |
| H A D | DXCModeTest.cpp | 33 IntrusiveRefCntPtr<llvm::vfs::InMemoryFileSystem> &InMemoryFileSystem, in validateTargetProfile() 45 IntrusiveRefCntPtr<llvm::vfs::InMemoryFileSystem> &InMemoryFileSystem, in validateTargetProfile() 58 IntrusiveRefCntPtr<DiagnosticIDs> DiagID(new DiagnosticIDs()); in TEST() 60 IntrusiveRefCntPtr<llvm::vfs::InMemoryFileSystem> InMemoryFileSystem( in TEST() 67 IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts = new DiagnosticOptions(); in TEST() 108 IntrusiveRefCntPtr<DiagnosticIDs> DiagID(new DiagnosticIDs()); in TEST() 110 IntrusiveRefCntPtr<llvm::vfs::InMemoryFileSystem> InMemoryFileSystem( in TEST() 117 IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts = new DiagnosticOptions(); in TEST() 213 IntrusiveRefCntPtr<llvm::vfs::InMemoryFileSystem> InMemoryFileSystem( in TEST() 221 IntrusiveRefCntPtr<DiagnosticsEngin in TEST() [all...] |
| /llvm-project/llvm/unittests/Support/ |
| H A D | VirtualFileSystemTest.cpp | 10 #include "llvm/ADT/IntrusiveRefCntPtr.h" 228 IntrusiveRefCntPtr<DummyFileSystem> D(new DummyFileSystem()); in TEST() 268 IntrusiveRefCntPtr<DummyFileSystem> D(new DummyFileSystem()); in TEST() 272 IntrusiveRefCntPtr<vfs::OverlayFileSystem> O(new vfs::OverlayFileSystem(D)); in TEST() 286 IntrusiveRefCntPtr<DummyFileSystem> Lower(new DummyFileSystem()); in TEST() 289 IntrusiveRefCntPtr<DummyFileSystem> Upper(new DummyFileSystem()); in TEST() 291 IntrusiveRefCntPtr<vfs::OverlayFileSystem> O( in TEST() 315 IntrusiveRefCntPtr<DummyFileSystem> Base(new DummyFileSystem()); in TEST() 316 IntrusiveRefCntPtr<DummyFileSystem> Middle(new DummyFileSystem()); in TEST() 317 IntrusiveRefCntPtr<DummyFileSyste in TEST() [all...] |
| /llvm-project/clang/include/clang/Frontend/ |
| H A D | CompilerInstance.h | 23 #include "llvm/ADT/IntrusiveRefCntPtr.h" 85 IntrusiveRefCntPtr<DiagnosticsEngine> Diagnostics; 88 IntrusiveRefCntPtr<TargetInfo> Target; 91 IntrusiveRefCntPtr<TargetInfo> AuxTarget; 94 IntrusiveRefCntPtr<FileManager> FileMgr; 97 IntrusiveRefCntPtr<SourceManager> SourceMgr; 100 IntrusiveRefCntPtr<InMemoryModuleCache> ModuleCache; 106 IntrusiveRefCntPtr<ASTContext> Context; 109 IntrusiveRefCntPtr<ExternalSemaSource> ExternalSemaSrc; 127 IntrusiveRefCntPtr<ASTReade [all...] |
| H A D | ASTUnit.h | 33 #include "llvm/ADT/IntrusiveRefCntPtr.h" 110 IntrusiveRefCntPtr<DiagnosticsEngine> Diagnostics; 111 IntrusiveRefCntPtr<FileManager> FileMgr; 112 IntrusiveRefCntPtr<SourceManager> SourceMgr; 113 IntrusiveRefCntPtr<InMemoryModuleCache> ModuleCache; 115 IntrusiveRefCntPtr<TargetInfo> Target; 117 IntrusiveRefCntPtr<ASTContext> Ctx; 121 IntrusiveRefCntPtr<ASTReader> Reader; 257 static void ConfigureDiags(IntrusiveRefCntPtr<DiagnosticsEngine> Diags, 375 IntrusiveRefCntPtr<llv [all...] |
| H A D | PrecompiledPreamble.h | 88 IntrusiveRefCntPtr<llvm::vfs::FileSystem> VFS, 125 IntrusiveRefCntPtr<llvm::vfs::FileSystem> &VFS, 132 IntrusiveRefCntPtr<llvm::vfs::FileSystem> &VFS, 174 IntrusiveRefCntPtr<llvm::vfs::FileSystem> &VFS, 183 IntrusiveRefCntPtr<llvm::vfs::FileSystem> &VFS);
|
| H A D | CompilerInvocation.h | 83 IntrusiveRefCntPtr<DiagnosticOptions> DiagnosticOpts; 402 IntrusiveRefCntPtr<llvm::vfs::FileSystem> 406 IntrusiveRefCntPtr<llvm::vfs::FileSystem> createVFSFromCompilerInvocation( 408 IntrusiveRefCntPtr<llvm::vfs::FileSystem> BaseFS); 410 IntrusiveRefCntPtr<llvm::vfs::FileSystem> 413 IntrusiveRefCntPtr<llvm::vfs::FileSystem> BaseFS);
|
| /llvm-project/clang-tools-extra/clangd/ |
| H A D | FS.cpp | 55 llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> 57 llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> FS) { in getProducingFS() 62 CollectFS(llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> FS, in getProducingFS() 91 return llvm::IntrusiveRefCntPtr<CollectFS>( in getProducingFS() 95 llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> 97 llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> FS) const { in getConsumingFS() 100 CacheVFS(llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> FS, in getConsumingFS() 113 return llvm::IntrusiveRefCntPtr<CacheVFS>(new CacheVFS(std::move(FS), *this)); in getConsumingFS()
|
| H A D | FS.h | 57 IntrusiveRefCntPtr<llvm::vfs::FileSystem> 58 getProducingFS(IntrusiveRefCntPtr<llvm::vfs::FileSystem> FS); 63 IntrusiveRefCntPtr<llvm::vfs::FileSystem> 64 getConsumingFS(IntrusiveRefCntPtr<llvm::vfs::FileSystem> FS) const;
|
| H A D | Preamble.h | 83 IntrusiveRefCntPtr<DiagnosticsEngine> Diagnostics; 84 IntrusiveRefCntPtr<TargetInfo> Target; 85 IntrusiveRefCntPtr<TargetInfo> AuxTarget; 86 IntrusiveRefCntPtr<FileManager> FileMgr; 87 IntrusiveRefCntPtr<SourceManager> SourceMgr; 89 IntrusiveRefCntPtr<ASTContext> Context;
|
| /llvm-project/clang/unittests/Tooling/Syntax/ |
| H A D | TreeTestBase.h | 43 IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts = new DiagnosticOptions(); 44 IntrusiveRefCntPtr<DiagnosticsEngine> Diags = 46 IntrusiveRefCntPtr<llvm::vfs::InMemoryFileSystem> FS = 48 IntrusiveRefCntPtr<FileManager> FileMgr = 50 IntrusiveRefCntPtr<SourceManager> SourceMgr =
|
| /llvm-project/clang-tools-extra/modularize/ |
| H A D | ModularizeUtilities.h | 199 const llvm::IntrusiveRefCntPtr<clang::DiagnosticIDs> DiagIDs; 201 llvm::IntrusiveRefCntPtr<clang::DiagnosticOptions> DiagnosticOpts; 205 llvm::IntrusiveRefCntPtr<clang::DiagnosticsEngine> Diagnostics; 209 llvm::IntrusiveRefCntPtr<clang::TargetInfo> Target; 213 llvm::IntrusiveRefCntPtr<clang::FileManager> FileMgr; 215 llvm::IntrusiveRefCntPtr<clang::SourceManager> SourceMgr;
|
| /llvm-project/clang-tools-extra/clangd/support/ |
| H A D | ThreadsafeFS.h | 31 llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> 39 llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> view(PathRef CWD) const; 44 virtual llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> viewImpl() const = 0; 49 llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> viewImpl() const override;
|
| /llvm-project/clang/unittests/Tooling/ |
| H A D | ToolingTest.cpp | 156 llvm::IntrusiveRefCntPtr<llvm::vfs::InMemoryFileSystem> InMemoryFileSystem( in TEST() 191 llvm::IntrusiveRefCntPtr<llvm::vfs::OverlayFileSystem> OverlayFileSystem( in TEST() 193 llvm::IntrusiveRefCntPtr<llvm::vfs::InMemoryFileSystem> InMemoryFileSystem( in TEST() 196 llvm::IntrusiveRefCntPtr<FileManager> Files( in TEST() 217 llvm::IntrusiveRefCntPtr<llvm::vfs::OverlayFileSystem> OverlayFileSystem( in TEST() 219 llvm::IntrusiveRefCntPtr<llvm::vfs::InMemoryFileSystem> InMemoryFileSystem( in TEST() 222 llvm::IntrusiveRefCntPtr<FileManager> Files( in TEST() 243 llvm::IntrusiveRefCntPtr<llvm::vfs::OverlayFileSystem> OverlayFileSystem( in TEST() 245 llvm::IntrusiveRefCntPtr<llvm::vfs::InMemoryFileSystem> InMemoryFileSystem( in TEST() 248 llvm::IntrusiveRefCntPtr<FileManage in TEST() [all...] |
| H A D | RewriterTestContext.h | 53 Diagnostics(IntrusiveRefCntPtr<DiagnosticIDs>(new DiagnosticIDs), in RewriterTestContext() 127 IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts; 130 IntrusiveRefCntPtr<llvm::vfs::InMemoryFileSystem> InMemoryFileSystem; 131 IntrusiveRefCntPtr<llvm::vfs::OverlayFileSystem> OverlayFileSystem;
|
| /llvm-project/clang/tools/clang-extdef-mapping/ |
| H A D | ClangExtDefMapGen.cpp | 124 static IntrusiveRefCntPtr<DiagnosticsEngine> Diags; 126 IntrusiveRefCntPtr<DiagnosticsEngine> GetDiagnosticsEngine() { in GetDiagnosticsEngine() 133 IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts = new DiagnosticOptions(); in GetDiagnosticsEngine() 137 IntrusiveRefCntPtr<DiagnosticIDs> DiagID(new DiagnosticIDs()); in GetDiagnosticsEngine() 139 IntrusiveRefCntPtr<DiagnosticsEngine> DiagEngine( in GetDiagnosticsEngine() 155 IntrusiveRefCntPtr<DiagnosticsEngine> DiagEngine = GetDiagnosticsEngine(); in HandleAST()
|
| /llvm-project/clang/lib/ARCMigrate/ |
| H A D | ARCMT.cpp | 181 IntrusiveRefCntPtr<DiagnosticIDs> DiagID(new DiagnosticIDs()); in createInvocationForMigration() 182 IntrusiveRefCntPtr<DiagnosticsEngine> Diags( in createInvocationForMigration() 220 IntrusiveRefCntPtr<DiagnosticIDs> DiagID(new DiagnosticIDs()); in emitPremigrationErrors() 221 IntrusiveRefCntPtr<DiagnosticsEngine> Diags( in emitPremigrationErrors() 260 IntrusiveRefCntPtr<DiagnosticIDs> DiagID(new DiagnosticIDs()); in checkForManualIssues() 261 IntrusiveRefCntPtr<DiagnosticsEngine> Diags( in checkForManualIssues() 369 IntrusiveRefCntPtr<DiagnosticIDs> DiagID(new DiagnosticIDs()); in applyTransforms() 370 IntrusiveRefCntPtr<DiagnosticsEngine> Diags( in applyTransforms() 406 IntrusiveRefCntPtr<DiagnosticIDs> DiagID(new DiagnosticIDs()); in getFileRemappings() 407 IntrusiveRefCntPtr<DiagnosticsEngin in getFileRemappings() [all...] |
| /llvm-project/clang-tools-extra/clang-tidy/ |
| H A D | ClangTidy.h | 38 IntrusiveRefCntPtr<llvm::vfs::OverlayFileSystem> OverlayFS = nullptr); 52 IntrusiveRefCntPtr<llvm::vfs::OverlayFileSystem> OverlayFS; 90 llvm::IntrusiveRefCntPtr<llvm::vfs::OverlayFileSystem> BaseFS, 114 llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> BaseFS);
|
| /llvm-project/llvm/include/llvm/Support/ |
| H A D | FileCollector.h | 41 IntrusiveRefCntPtr<vfs::FileSystem> FS, 109 static IntrusiveRefCntPtr<vfs::FileSystem> 110 createCollectorVFS(IntrusiveRefCntPtr<vfs::FileSystem> BaseFS, 128 IntrusiveRefCntPtr<vfs::FileSystem> FS,
|
| /llvm-project/clang/tools/diagtool/ |
| H A D | ShowEnabledWarnings.cpp | 56 static IntrusiveRefCntPtr<DiagnosticsEngine> in createDiagnostics() 58 IntrusiveRefCntPtr<DiagnosticIDs> DiagIDs(new DiagnosticIDs()); in createDiagnostics() 77 IntrusiveRefCntPtr<DiagnosticsEngine> FinalDiags = in createDiagnostics() 107 IntrusiveRefCntPtr<DiagnosticsEngine> Diags = createDiagnostics(argc, argv); in run()
|
| /llvm-project/clang/tools/clang-fuzzer/handle-cxx/ |
| H A D | handle_cxx.cpp | 32 llvm::IntrusiveRefCntPtr<FileManager> Files( in HandleCXX() 35 IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts = new DiagnosticOptions(); in HandleCXX() 37 IntrusiveRefCntPtr<clang::DiagnosticIDs>(new DiagnosticIDs()), &*DiagOpts, in HandleCXX()
|
| /llvm-project/clang-tools-extra/clangd/unittests/ |
| H A D | TestFS.h | 17 #include "llvm/ADT/IntrusiveRefCntPtr.h" 27 llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> 34 IntrusiveRefCntPtr<llvm::vfs::FileSystem> viewImpl() const override { in viewImpl() 38 llvm::IntrusiveRefCntPtr<llvm::vfs::OverlayFileSystem> OverlayFileSystem = in viewImpl()
|
| /llvm-project/clang/lib/Tooling/ |
| H A D | Tooling.cpp | 38 #include "llvm/ADT/IntrusiveRefCntPtr.h" 79 IntrusiveRefCntPtr<llvm::vfs::FileSystem> VFS) { in newDriver() 211 llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> VFS, in runToolOnCodeWithArgs() 218 llvm::IntrusiveRefCntPtr<FileManager> Files( in runToolOnCodeWithArgs() 233 llvm::IntrusiveRefCntPtr<llvm::vfs::OverlayFileSystem> OverlayFileSystem( in runToolOnCodeWithArgs() 235 llvm::IntrusiveRefCntPtr<llvm::vfs::InMemoryFileSystem> InMemoryFileSystem( in runToolOnCodeWithArgs() 380 IntrusiveRefCntPtr<DiagnosticOptions> ParsedDiagOpts; in run() 388 IntrusiveRefCntPtr<DiagnosticsEngine> Diagnostics = in run() 476 IntrusiveRefCntPtr<llvm::vfs::FileSystem> BaseFS, in ClangTool() 477 IntrusiveRefCntPtr<FileManage in ClangTool() [all...] |