================
@@ -16,6 +16,8 @@
 
 #include <cstddef>
 
+#include "clang/Basic/Diagnostic.h"
----------------
ilya-biryukov wrote:

This dependency seems unnecessary in this file, the other functions are 
lower-level (don't depend on SourceLocations, etc).

There are a few files that depend on it for things like `noteBottomOfStack()`.

In the interest of keeping the dependencies minimal, I'd suggest moving this to 
a new file that depends on `Stack.h` and source locations + diagnostics engine. 

https://github.com/llvm/llvm-project/pull/112371
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to