r346633 - Support Swift in platform availability attribute

2018-11-11 Thread Michael Wu via cfe-commits
Author: mwu Date: Sun Nov 11 18:44:33 2018 New Revision: 346633 URL: http://llvm.org/viewvc/llvm-project?rev=346633&view=rev Log: Support Swift in platform availability attribute Summary: This adds support for Swift platform availability attributes. It's largely a port of the changes made to htt

r338820 - [libclang 8/8] Add support for the flag_enum attribute

2018-08-02 Thread Michael Wu via cfe-commits
Author: mwu Date: Thu Aug 2 22:55:40 2018 New Revision: 338820 URL: http://llvm.org/viewvc/llvm-project?rev=338820&view=rev Log: [libclang 8/8] Add support for the flag_enum attribute Summary: This adds support to libclang for reading the flag_enum attribute. This also bumps CINDEX_VERSION_MINO

r338816 - [libclang 7/8] Add support for getting property setter and getter names

2018-08-02 Thread Michael Wu via cfe-commits
Author: mwu Date: Thu Aug 2 22:38:29 2018 New Revision: 338816 URL: http://llvm.org/viewvc/llvm-project?rev=338816&view=rev Log: [libclang 7/8] Add support for getting property setter and getter names Summary: This allows libclang to access the actual names of property setters and getters witho

r338815 - [libclang 6/8] Add support for reading implicit attributes

2018-08-02 Thread Michael Wu via cfe-commits
Author: mwu Date: Thu Aug 2 22:20:23 2018 New Revision: 338815 URL: http://llvm.org/viewvc/llvm-project?rev=338815&view=rev Log: [libclang 6/8] Add support for reading implicit attributes Summary: Having access to implicit attributes is sometimes useful so users of libclang don't have to duplic

r338813 - [libclang 5/8] Add support for ObjC attributes without args

2018-08-02 Thread Michael Wu via cfe-commits
Author: mwu Date: Thu Aug 2 22:03:22 2018 New Revision: 338813 URL: http://llvm.org/viewvc/llvm-project?rev=338813&view=rev Log: [libclang 5/8] Add support for ObjC attributes without args Summary: This adds support to libclang for identifying ObjC related attributes that don't take arguments.

r338809 - [libclang 4/8] Add the clang_Type_getNullability() API

2018-08-02 Thread Michael Wu via cfe-commits
Author: mwu Date: Thu Aug 2 21:38:04 2018 New Revision: 338809 URL: http://llvm.org/viewvc/llvm-project?rev=338809&view=rev Log: [libclang 4/8] Add the clang_Type_getNullability() API Summary: This patch adds a clang-c API for querying the nullability of an AttributedType. The test here also te

r338808 - [libclang 3/8] Add support for AttributedType

2018-08-02 Thread Michael Wu via cfe-commits
Author: mwu Date: Thu Aug 2 21:21:25 2018 New Revision: 338808 URL: http://llvm.org/viewvc/llvm-project?rev=338808&view=rev Log: [libclang 3/8] Add support for AttributedType Summary: This patch adds support to the libclang API for identifying AttributedTypes in CXTypes and reading the modified

r338807 - [libclang 2/8] Add support for ObjCTypeParam

2018-08-02 Thread Michael Wu via cfe-commits
Author: mwu Date: Thu Aug 2 21:02:40 2018 New Revision: 338807 URL: http://llvm.org/viewvc/llvm-project?rev=338807&view=rev Log: [libclang 2/8] Add support for ObjCTypeParam Summary: This patch adds support to the libclang API for identifying ObjCTypeParams in CXTypes. This patch depends on D4

r338804 - [libclang 1/8] Add support for ObjCObjectType

2018-08-02 Thread Michael Wu via cfe-commits
Author: mwu Date: Thu Aug 2 20:03:20 2018 New Revision: 338804 URL: http://llvm.org/viewvc/llvm-project?rev=338804&view=rev Log: [libclang 1/8] Add support for ObjCObjectType Summary: This patch adds support to the clang-c API for identifying ObjCObjects in CXTypes, enumerating type args and pr

r338675 - Test commit access

2018-08-02 Thread Michael Wu via cfe-commits
Author: mwu Date: Thu Aug 2 00:28:11 2018 New Revision: 338675 URL: http://llvm.org/viewvc/llvm-project?rev=338675&view=rev Log: Test commit access 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/inc

Re: [PATCH] D13388: Add support for querying the visibility of a cursor

2015-11-18 Thread Michael Wu via cfe-commits
michaelwu added a comment. Anyone mind landing this for me? I don't have commit access. http://reviews.llvm.org/D13388 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D13388: Add support for querying the visibility of a cursor

2015-11-12 Thread Michael Wu via cfe-commits
michaelwu updated this revision to Diff 40100. michaelwu added a comment. This removes the test for protected visibility and improves documentation for clang_getCursorVisibility. http://reviews.llvm.org/D13388 Files: include/clang-c/Index.h test/Index/symbol-visibility.c tools/c-index-te

Re: [PATCH] D13388: Add support for querying the visibility of a cursor

2015-11-04 Thread Michael Wu via cfe-commits
michaelwu added inline comments. Comment at: test/Index/symbol-visibility.c:8 @@ +7,3 @@ +// CHECK: FunctionDecl=foo1:3:47visibility=Default +// CHECK: FunctionDecl=foo2:4:49visibility=Protected +// CHECK: FunctionDecl=foo3:5:46visibility=Hidden skalinichev wrote:

Re: [PATCH] D13388: Add support for querying the visibility of a cursor

2015-10-29 Thread Michael Wu via cfe-commits
michaelwu added a comment. Review ping? http://reviews.llvm.org/D13388 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D13388: Add support for querying the visibility of a cursor

2015-10-17 Thread Michael Wu via cfe-commits
michaelwu added a comment. Visibility can be set via command line args without any attributes in the AST, so I don't think that's sufficient. http://reviews.llvm.org/D13388 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.o

Re: [PATCH] D13317: clang_Cursor_getMangling shouldn't mangle if the declaration isn't mangled

2015-10-06 Thread Michael Wu via cfe-commits
michaelwu updated this revision to Diff 36645. michaelwu added a comment. Turns out clang_isUnexposed is what I wanted, rather than clang_isInvalid. I remember seeing clang_isInvalid work though.. http://reviews.llvm.org/D13317 Files: test/Index/print-mangled-name.cpp tools/c-index-test/c-

Re: [PATCH] D13317: clang_Cursor_getMangling shouldn't mangle if the declaration isn't mangled

2015-10-05 Thread Michael Wu via cfe-commits
michaelwu updated this revision to Diff 36518. michaelwu added a comment. This uses clang_isInvalid in PrintMangledName instead of checking for CXCursor_UnexposedDecl. http://reviews.llvm.org/D13317 Files: test/Index/print-mangled-name.cpp tools/c-index-test/c-index-test.c tools/libclang

Re: [PATCH] D13317: clang_Cursor_getMangling shouldn't mangle if the declaration isn't mangled

2015-10-05 Thread Michael Wu via cfe-commits
michaelwu marked 2 inline comments as done. michaelwu added a comment. http://reviews.llvm.org/D13317 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D13388: Add support for querying the visibility of a cursor

2015-10-02 Thread Michael Wu via cfe-commits
michaelwu created this revision. michaelwu added a subscriber: cfe-commits. This patch implements clang_getCursorVisibility which provides access to NamedDecl::getVisibility. It's been very useful for me when generating bindings. http://reviews.llvm.org/D13388 Files: include/clang-c/Index.h

Re: [PATCH] D13317: clang_Cursor_getMangling shouldn't mangle if the declaration isn't mangled

2015-10-01 Thread Michael Wu via cfe-commits
michaelwu updated this revision to Diff 36330. michaelwu added a comment. Thanks for the review. I switched to shouldMangleDeclName instead of shouldMangleCXXName, and made it skip the frontend mangling instead of returning an empty string. I tried making mangleName do that instead, but it seem

[PATCH] D13317: clang_Cursor_getMangling shouldn't mangle if the declaration isn't mangled

2015-09-30 Thread Michael Wu via cfe-commits
michaelwu created this revision. michaelwu added a subscriber: cfe-commits. Right now clang_Cursor_getMangling will attempt to mangle any declaration, even if the declaration isn't mangled (extern "C"). This results in a partially mangled name which isn't useful for much. This patch makes clang