diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2016-05-24 01:23:24 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2016-05-24 01:23:24 +0000 |
commit | ec988b76cc45a1ff41567b6f2f0b77250096f3d6 (patch) | |
tree | 9efe00f6e3776bd813c8becfea2c21934219af37 /clang/include/clang-c | |
parent | 51fe002e67e6e611465c5a36b3e3e6753eea4a09 (diff) | |
download | bcm5719-llvm-ec988b76cc45a1ff41567b6f2f0b77250096f3d6.tar.gz bcm5719-llvm-ec988b76cc45a1ff41567b6f2f0b77250096f3d6.zip |
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.
llvm-svn: 270520
Diffstat (limited to 'clang/include/clang-c')
-rw-r--r-- | clang/include/clang-c/Index.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/include/clang-c/Index.h b/clang/include/clang-c/Index.h index 06f369a9faa..794c49047fe 100644 --- a/clang/include/clang-c/Index.h +++ b/clang/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; |