diff options
| author | Francois Pichet <pichet2000@gmail.com> | 2011-07-25 22:00:44 +0000 |
|---|---|---|
| committer | Francois Pichet <pichet2000@gmail.com> | 2011-07-25 22:00:44 +0000 |
| commit | ece689f3360265b8ad05f39ae59d82f263d898df (patch) | |
| tree | 3f5cd6fa5f845e53c14bd379d55fb420c070c517 /clang/include/clang-c | |
| parent | 6099cf16e57d4fd2a8131797186ff70647f38b0d (diff) | |
| download | bcm5719-llvm-ece689f3360265b8ad05f39ae59d82f263d898df.tar.gz bcm5719-llvm-ece689f3360265b8ad05f39ae59d82f263d898df.zip | |
Fix the MSVC build. 2 problems:
- buildPieces was return a C++ object from inside an extern "C". (MSVC didn't like that)
- clang_getCursorReferenceNameRange was missing a CINDEX_LINKAGE causing a link error.
llvm-svn: 135983
Diffstat (limited to 'clang/include/clang-c')
| -rw-r--r-- | clang/include/clang-c/Index.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/include/clang-c/Index.h b/clang/include/clang-c/Index.h index 8d35419a432..d4fa9a2453e 100644 --- a/clang/include/clang-c/Index.h +++ b/clang/include/clang-c/Index.h @@ -2404,7 +2404,8 @@ CINDEX_LINKAGE CXCursor clang_getSpecializedCursorTemplate(CXCursor C); * \returns The piece of the name pointed to by the given cursor. If there is no * name, or if the PieceIndex is out-of-range, a null-cursor will be returned. */ -CXSourceRange clang_getCursorReferenceNameRange(CXCursor C, unsigned NameFlags, +CINDEX_LINKAGE CXSourceRange clang_getCursorReferenceNameRange(CXCursor C, + unsigned NameFlags, unsigned PieceIndex); enum CXNameRefFlags { |

