diff options
author | Evgeny Mankov <evgeny.mankov@gmail.com> | 2019-08-27 22:15:32 +0000 |
---|---|---|
committer | Evgeny Mankov <evgeny.mankov@gmail.com> | 2019-08-27 22:15:32 +0000 |
commit | 1002cd493c7298f0b0f49ea175a37bb514a99f1f (patch) | |
tree | 8f819c375528069e697c93f149d018a93f401052 /include/clang-c | |
parent | 610ec02d6d37fe332e142d131378545b41db879d (diff) | |
download | clang-1002cd493c7298f0b0f49ea175a37bb514a99f1f.tar.gz |
[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
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@370123 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 74badac740..bdce233ce8 100644 --- a/include/clang-c/Index.h +++ b/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, }; /** |