diff options
| author | Richard Smith <richard-llvm@metafoo.co.uk> | 2017-06-09 21:24:02 +0000 |
|---|---|---|
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2017-06-09 21:24:02 +0000 |
| commit | 86a3ef5b03b2cc7c70b5d8870775e7fc40069f00 (patch) | |
| tree | eb3c2fc04eb49480636bcf2a4b5101975e7ab663 /clang/include/clang/Frontend/PreprocessorOutputOptions.h | |
| parent | 7ad13f259f203d6d25bbe263c38e55976a521c33 (diff) | |
| download | bcm5719-llvm-86a3ef5b03b2cc7c70b5d8870775e7fc40069f00.tar.gz bcm5719-llvm-86a3ef5b03b2cc7c70b5d8870775e7fc40069f00.zip | |
Add -frewrite-imports flag.
If specified, when preprocessing, the contents of imported .pcm files will be
included in preprocessed output. The resulting preprocessed file can then be
compiled standalone without the module sources or .pcm files.
llvm-svn: 305116
Diffstat (limited to 'clang/include/clang/Frontend/PreprocessorOutputOptions.h')
| -rw-r--r-- | clang/include/clang/Frontend/PreprocessorOutputOptions.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/include/clang/Frontend/PreprocessorOutputOptions.h b/clang/include/clang/Frontend/PreprocessorOutputOptions.h index 3261b665380..94afcd06a39 100644 --- a/clang/include/clang/Frontend/PreprocessorOutputOptions.h +++ b/clang/include/clang/Frontend/PreprocessorOutputOptions.h @@ -24,6 +24,7 @@ public: unsigned ShowMacros : 1; ///< Print macro definitions. unsigned ShowIncludeDirectives : 1; ///< Print includes, imports etc. within preprocessed output. unsigned RewriteIncludes : 1; ///< Preprocess include directives only. + unsigned RewriteImports : 1; ///< Include contents of transitively-imported modules. public: PreprocessorOutputOptions() { @@ -35,6 +36,7 @@ public: ShowMacros = 0; ShowIncludeDirectives = 0; RewriteIncludes = 0; + RewriteImports = 0; } }; |

