summaryrefslogtreecommitdiffstats
path: root/clang/include/clang-c
diff options
context:
space:
mode:
authorMichael Wu <mwu.code@gmail.com>2018-08-03 05:20:23 +0000
committerMichael Wu <mwu.code@gmail.com>2018-08-03 05:20:23 +0000
commit40ff105663d9f55185d44844eddcbadf0b45360a (patch)
tree40fb5bf469866ea8a3f3f94f41a6ad0bcaa6c04c /clang/include/clang-c
parent21a8b605a1b3672384c7b14804f0288e1778fa36 (diff)
downloadbcm5719-llvm-40ff105663d9f55185d44844eddcbadf0b45360a.tar.gz
bcm5719-llvm-40ff105663d9f55185d44844eddcbadf0b45360a.zip
[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 llvm-svn: 338815
Diffstat (limited to 'clang/include/clang-c')
-rw-r--r--clang/include/clang-c/Index.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/clang/include/clang-c/Index.h b/clang/include/clang-c/Index.h
index a0ca0128c8a..481f65ac433 100644
--- a/clang/include/clang-c/Index.h
+++ b/clang/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
};
/**
OpenPOWER on IntegriCloud