From: Saleem Abdulrasool Date: Tue, 24 May 2016 01:23:24 +0000 (+0000) Subject: clang-c: de-anonymize structure declaration X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a590ca84b672168e59870cee0b937ae9aa823380;p=clang clang-c: de-anonymize structure declaration The statement constructed an anonymous structure which was typedefed. The anonymous structure has internal linkage, and that would cause an error when building with modules. Give the type declaration a tag name to address the error when building with modules. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@270520 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang-c/Index.h b/include/clang-c/Index.h index 06f369a9fa..794c49047f 100644 --- a/include/clang-c/Index.h +++ b/include/clang-c/Index.h @@ -5301,7 +5301,7 @@ enum CXVisitorResult { CXVisit_Continue }; -typedef struct { +typedef struct CXCursorAndRangeVisitor { void *context; enum CXVisitorResult (*visit)(void *context, CXCursor, CXSourceRange); } CXCursorAndRangeVisitor;