Skip to content

Commit fd9739f

Browse files
[clang][Index] Add comment about out-of-line defaulted destructor
1 parent ca59a2b commit fd9739f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clang/lib/Index/IndexingContext.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ class IndexingContext {
4444

4545
public:
4646
IndexingContext(IndexingOptions IndexOpts, IndexDataConsumer &DataConsumer);
47+
// Defaulted, but defined out of line to avoid a dependency on
48+
// HeuristicResolver.h (unique_ptr requires a complete type at
49+
// the point where its destructor is called).
4750
~IndexingContext();
4851

4952
const IndexingOptions &getIndexOpts() const { return IndexOpts; }

0 commit comments

Comments
 (0)