r270520 - clang-c: de-anonymize structure declaration
Saleem Abdulrasool via cfe-commits
cfe-commits at lists.llvm.org
Mon May 23 18:23:24 PDT 2016
Author: compnerd
Date: Mon May 23 20:23:24 2016
New Revision: 270520
URL: http://llvm.org/viewvc/llvm-project?rev=270520&view=rev
Log:
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.
Modified:
cfe/trunk/include/clang-c/Index.h
Modified: cfe/trunk/include/clang-c/Index.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang-c/Index.h?rev=270520&r1=270519&r2=270520&view=diff
==============================================================================
--- cfe/trunk/include/clang-c/Index.h (original)
+++ cfe/trunk/include/clang-c/Index.h Mon May 23 20:23:24 2016
@@ -5301,7 +5301,7 @@ enum CXVisitorResult {
CXVisit_Continue
};
-typedef struct {
+typedef struct CXCursorAndRangeVisitor {
void *context;
enum CXVisitorResult (*visit)(void *context, CXCursor, CXSourceRange);
} CXCursorAndRangeVisitor;
More information about the cfe-commits
mailing list