We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01c9500 commit 40446a8Copy full SHA for 40446a8
clang/include/clang/Frontend/ASTUnit.h
@@ -107,6 +107,10 @@ class ASTUnit {
107
108
private:
109
std::unique_ptr<LangOptions> LangOpts;
110
+ // FIXME: The documentation on \c LoadFrom* member functions states that the
111
+ // DiagnosticsEngine (and therefore DiagnosticOptions) must outlive the
112
+ // returned ASTUnit. This is not the case. Enfore it by storing non-owning
113
+ // pointers here.
114
std::shared_ptr<DiagnosticOptions> DiagOpts;
115
IntrusiveRefCntPtr<DiagnosticsEngine> Diagnostics;
116
IntrusiveRefCntPtr<FileManager> FileMgr;
0 commit comments