================
@@ -29,6 +29,7 @@
 #include "clang/AST/TypeLoc.h"
 #include "clang/AST/UnresolvedSet.h"
 #include "clang/Basic/Diagnostic.h"
+#include "clang/Basic/DiagnosticSema.h"
----------------
AaronBallman wrote:

Our library layering is such that Sema sits on top of AST, they're not 
siblings. So it's a code smell for anything in AST to include anything that 
says "Sema" and we already split our diagnostics based on what library layer 
they're emitted from. So yes, I think this belongs in `DiagnosticASTKinds.td` 
instead; there are possibly others that should move as well which aren't 
related to your changes.

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

Reply via email to