Adapt llvmorg-18-init-10631-gedd690b02e16: TTK_*

This commit is contained in:
Fangrui Song 2023-11-15 16:01:09 -08:00
parent 7b17426b9f
commit 490edc1e02
2 changed files with 12 additions and 0 deletions

View File

@ -28,6 +28,14 @@
using namespace clang; using namespace clang;
#if LLVM_VERSION_MAJOR >= 18 // llvmorg-18-init-10631-gedd690b02e16
#define TTK_Class TagTypeKind::Class
#define TTK_Enum TagTypeKind::Enum
#define TTK_Interface TagTypeKind::Interface
#define TTK_Struct TagTypeKind::Struct
#define TTK_Union TagTypeKind::Union
#endif
namespace ccls { namespace ccls {
namespace { namespace {

View File

@ -17,6 +17,10 @@
#include <regex> #include <regex>
#endif #endif
#if LLVM_VERSION_MAJOR >= 18 // llvmorg-18-init-10631-gedd690b02e16
#define TTK_Struct TagTypeKind::Struct
#endif
namespace ccls { namespace ccls {
using namespace clang; using namespace clang;
using namespace llvm; using namespace llvm;