[clang] efd97c7 - [libclang] Fix -Wswitch after D129883

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 21 11:55:23 PDT 2022


Author: Fangrui Song
Date: 2022-09-21T11:55:14-07:00
New Revision: efd97c716b36ff266ffa1ec1b7a3c4a3f28917b9

URL: https://github.com/llvm/llvm-project/commit/efd97c716b36ff266ffa1ec1b7a3c4a3f28917b9
DIFF: https://github.com/llvm/llvm-project/commit/efd97c716b36ff266ffa1ec1b7a3c4a3f28917b9.diff

LOG: [libclang] Fix -Wswitch after D129883

Added: 
    

Modified: 
    clang/tools/libclang/CIndex.cpp

Removed: 
    


################################################################################
diff  --git a/clang/tools/libclang/CIndex.cpp b/clang/tools/libclang/CIndex.cpp
index 22f2f7d482d9d..373ac605df02f 100644
--- a/clang/tools/libclang/CIndex.cpp
+++ b/clang/tools/libclang/CIndex.cpp
@@ -6658,6 +6658,7 @@ CXCursor clang_getCursorDefinition(CXCursor C) {
   case Decl::Binding:
   case Decl::MSProperty:
   case Decl::MSGuid:
+  case Decl::HLSLBuffer:
   case Decl::UnnamedGlobalConstant:
   case Decl::TemplateParamObject:
   case Decl::IndirectField:


        


More information about the cfe-commits mailing list