[Basic] Drop header-only dependency from Basic to Lex
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 26 Aug 2022 14:02:34 +0000 (16:02 +0200)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 26 Aug 2022 14:03:22 +0000 (16:03 +0200)
It's still a bit weird for IdentifierTable to depend on Lex diagnostics,
but we can get away with including the enum info that's in Basic already.

clang/include/clang/Basic/IdentifierTable.h
clang/lib/Basic/IdentifierTable.cpp

index 1e89aa5..f98ea48 100644 (file)
@@ -15,9 +15,9 @@
 #ifndef LLVM_CLANG_BASIC_IDENTIFIERTABLE_H
 #define LLVM_CLANG_BASIC_IDENTIFIERTABLE_H
 
+#include "clang/Basic/DiagnosticIDs.h"
 #include "clang/Basic/LLVM.h"
 #include "clang/Basic/TokenKinds.h"
-#include "clang/Lex/LexDiagnostic.h"
 #include "llvm/ADT/DenseMapInfo.h"
 #include "llvm/ADT/SmallString.h"
 #include "llvm/ADT/StringMap.h"
index 5d413a8..3940d4b 100644 (file)
@@ -13,6 +13,7 @@
 
 #include "clang/Basic/IdentifierTable.h"
 #include "clang/Basic/CharInfo.h"
+#include "clang/Basic/DiagnosticLex.h"
 #include "clang/Basic/LangOptions.h"
 #include "clang/Basic/OperatorKinds.h"
 #include "clang/Basic/Specifiers.h"