diff options
author | Michael Wu <mwu.code@gmail.com> | 2018-08-03 05:20:23 +0000 |
---|---|---|
committer | Michael Wu <mwu.code@gmail.com> | 2018-08-03 05:20:23 +0000 |
commit | 1fc060c4f780c95c33a3724c1981bb5d3fbb9737 (patch) | |
tree | f6c09d176261f6eec506cd2a2aca2a49140bc267 /include/clang-c | |
parent | 4042ae53b138dddb400aa62c3668c29075ca9e92 (diff) | |
download | clang-1fc060c4f780c95c33a3724c1981bb5d3fbb9737.tar.gz |
[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 duplicate some of the logic in sema.
This depends on D49081 since it also adds a CXTranslationUnit flag.
Reviewers: yvvan, jbcoe
Reviewed By: yvvan
Subscribers: cfe-commits
Differential Revision: https://reviews.llvm.org/D49631
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@338815 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang-c')
-rw-r--r-- | include/clang-c/Index.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/clang-c/Index.h b/include/clang-c/Index.h index a0ca0128c8..481f65ac43 100644 --- a/include/clang-c/Index.h +++ b/include/clang-c/Index.h @@ -1336,7 +1336,12 @@ enum CXTranslationUnit_Flags { /** * Used to indicate that attributed types should be included in CXType. */ - CXTranslationUnit_IncludeAttributedTypes = 0x1000 + CXTranslationUnit_IncludeAttributedTypes = 0x1000, + + /** + * Used to indicate that implicit attributes should be visited. + */ + CXTranslationUnit_VisitImplicitAttributes = 0x2000 }; /** |