[clang] d747f82 - libclang: add missing `struct` in the declaration
    Saleem Abdulrasool via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Wed May 10 10:33:46 PDT 2023
    
    
  
Author: Saleem Abdulrasool
Date: 2023-05-10T10:31:53-07:00
New Revision: d747f8277b386059a74dee062295aa8d864398fc
URL: https://github.com/llvm/llvm-project/commit/d747f8277b386059a74dee062295aa8d864398fc
DIFF: https://github.com/llvm/llvm-project/commit/d747f8277b386059a74dee062295aa8d864398fc.diff
LOG: libclang: add missing `struct` in the declaration
When building with compilers that do not support the Blocks extension,
we would fail to compile due to the missing type specifier on the
`typedef`.  This should repair those builds.
Fixes: #62640
Added: 
    
Modified: 
    clang/include/clang-c/Index.h
Removed: 
    
################################################################################
diff  --git a/clang/include/clang-c/Index.h b/clang/include/clang-c/Index.h
index 2c1bc02003ba..29c53c0382ab 100644
--- a/clang/include/clang-c/Index.h
+++ b/clang/include/clang-c/Index.h
@@ -3874,7 +3874,7 @@ CINDEX_LINKAGE unsigned clang_visitChildren(CXCursor parent,
 typedef enum CXChildVisitResult (^CXCursorVisitorBlock)(CXCursor cursor,
                                                         CXCursor parent);
 #else
-typedef _CXChildVisitResult *CXCursorVisitorBlock;
+typedef struct _CXChildVisitResult *CXCursorVisitorBlock;
 #endif
 
 /**
        
    
    
More information about the cfe-commits
mailing list