From fd9739f40b523782bde04010eac6556ef776f84e Mon Sep 17 00:00:00 2001 From: Nathan Ridge Date: Tue, 6 May 2025 02:50:47 -0400 Subject: [PATCH] [clang][Index] Add comment about out-of-line defaulted destructor --- clang/lib/Index/IndexingContext.h | 3 +++ 1 file changed, 3 insertions(+) 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; }