[clang] 25af0ae - [clang][Index] Add comment about out-of-line defaulted destructor (#138640)
via cfe-commits
cfe-commits at lists.llvm.org
Tue May 6 13:48:08 PDT 2025
Author: Nathan Ridge
Date: 2025-05-06T16:48:04-04:00
New Revision: 25af0ae8efa90610af114dfe0eea8f7f14462cc2
URL: https://github.com/llvm/llvm-project/commit/25af0ae8efa90610af114dfe0eea8f7f14462cc2
DIFF: https://github.com/llvm/llvm-project/commit/25af0ae8efa90610af114dfe0eea8f7f14462cc2.diff
LOG: [clang][Index] Add comment about out-of-line defaulted destructor (#138640)
Added:
Modified:
clang/lib/Index/IndexingContext.h
Removed:
################################################################################
diff --git a/clang/lib/Index/IndexingContext.h b/clang/lib/Index/IndexingContext.h
index 01bfcb9d578bc..5a9e1f7f337bf 100644
--- a/clang/lib/Index/IndexingContext.h
+++ b/clang/lib/Index/IndexingContext.h
@@ -44,6 +44,9 @@ class IndexingContext {
public:
IndexingContext(IndexingOptions IndexOpts, IndexDataConsumer &DataConsumer);
+ // Defaulted, but defined out of line to avoid a dependency on
+ // HeuristicResolver.h (unique_ptr requires a complete type at
+ // the point where its destructor is called).
~IndexingContext();
const IndexingOptions &getIndexOpts() const { return IndexOpts; }
More information about the cfe-commits
mailing list