diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2015-12-10 18:45:18 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2015-12-10 18:45:18 +0000 |
commit | 8aa0b80ec71e839c236f83e8943cf87264d97fb1 (patch) | |
tree | eb3975f13b26994c1db8df28ac125fd3c3fdd489 /clang/tools/libclang/CXCursor.cpp | |
parent | a8547d35e95a73a66ad718d9f76034b2c878e6ca (diff) | |
download | bcm5719-llvm-8aa0b80ec71e839c236f83e8943cf87264d97fb1.tar.gz bcm5719-llvm-8aa0b80ec71e839c236f83e8943cf87264d97fb1.zip |
libclang: expose dllexport, dllimport attributes
These attributes were previously unexposed. Expose them through the libclang
interfaces. Add tests that cover both the MSVC spelling and the GNU spelling.
llvm-svn: 255273
Diffstat (limited to 'clang/tools/libclang/CXCursor.cpp')
-rw-r--r-- | clang/tools/libclang/CXCursor.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/tools/libclang/CXCursor.cpp b/clang/tools/libclang/CXCursor.cpp index fbf0aaf049d..a9809811663 100644 --- a/clang/tools/libclang/CXCursor.cpp +++ b/clang/tools/libclang/CXCursor.cpp @@ -59,6 +59,8 @@ static CXCursorKind GetCursorKind(const Attr *A) { case attr::CUDAHost: return CXCursor_CUDAHostAttr; case attr::CUDAShared: return CXCursor_CUDASharedAttr; case attr::Visibility: return CXCursor_VisibilityAttr; + case attr::DLLExport: return CXCursor_DLLExport; + case attr::DLLImport: return CXCursor_DLLImport; } return CXCursor_UnexposedAttr; |