summaryrefslogtreecommitdiffstats
path: root/clang/include/clang-c
diff options
context:
space:
mode:
authorEvgeny Mankov <evgeny.mankov@gmail.com>2019-08-27 22:15:32 +0000
committerEvgeny Mankov <evgeny.mankov@gmail.com>2019-08-27 22:15:32 +0000
commit2ed2e62498b7cccf951b7c671498625cecd2a862 (patch)
tree55eec008498bc42eae38b77d850d0c7e8a042a48 /clang/include/clang-c
parent1fac68b0dc19b03fd2c5e9856f0f2c5a11691348 (diff)
downloadbcm5719-llvm-2ed2e62498b7cccf951b7c671498625cecd2a862.tar.gz
bcm5719-llvm-2ed2e62498b7cccf951b7c671498625cecd2a862.zip
[preprocessor] Add an opportunity to retain excluded conditional blocks
It is handy for clang tooling, for instance, in source to source transformation. Reviewers: vpykhtin (Valery Pykhtin), erichkeane (Erich Keane) Subscribers: rsmith (Richard Smith), akyrtzi (Argyrios Kyrtzidis) Tags: #clang Differential Revision: https://reviews.llvm.org/D66597 llvm-svn: 370123
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 74badac740b..bdce233ce8b 100644
--- a/clang/include/clang-c/Index.h
+++ b/clang/include/clang-c/Index.h
@@ -1356,7 +1356,12 @@ enum CXTranslationUnit_Flags {
* the case where these warnings are not of interest, as for an IDE for
* example, which typically shows only the diagnostics in the main file.
*/
- CXTranslationUnit_IgnoreNonErrorsFromIncludedFiles = 0x4000
+ CXTranslationUnit_IgnoreNonErrorsFromIncludedFiles = 0x4000,
+
+ /**
+ * Tells the preprocessor not to skip excluded conditional blocks.
+ */
+ CXTranslationUnit_RetainExcludedConditionalBlocks = 0x8000,
};
/**
OpenPOWER on IntegriCloud