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; }


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to