[libclang 3/8] Add support for AttributedType
authorMichael Wu <mwu.code@gmail.com>
Fri, 3 Aug 2018 04:21:25 +0000 (04:21 +0000)
committerMichael Wu <mwu.code@gmail.com>
Fri, 3 Aug 2018 04:21:25 +0000 (04:21 +0000)
commit153085d6bc7c15e059a32f8223479a8e35d82ee5
tree4923e4b891adc278bc2f59e19af8914560f4bfb0
parentced99b99d1b3bf495b12d2c7e951c6ed985d0364
[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 type that the type points to. Currently AttributedTypes are skipped. This patch continues to skip AttributedTypes by default, but adds a parsing option to CXTranslationUnit to include AttributedTypes.

This patch depends on D49066 since it also adds a CXType.

Testing will be added in another patch which depends on this one.

Reviewers: yvvan, jbcoe

Reviewed By: yvvan

Subscribers: cfe-commits

Differential Revision: https://reviews.llvm.org/D49081

llvm-svn: 338808
clang/include/clang-c/Index.h
clang/tools/libclang/CXType.cpp
clang/tools/libclang/libclang.exports