diff options
author | Paul Robinson <paul.robinson@sony.com> | 2023-09-28 07:18:11 -0700 |
---|---|---|
committer | Paul Robinson <paul.robinson@sony.com> | 2023-10-06 12:55:48 -0700 |
commit | 71d83bb426104fb77605382c61968aaf55b537b8 (patch) | |
tree | 3fecf217d3e7845db0c200b998b122f21f5865bc /clang/lib/Basic/SourceManager.cpp | |
parent | 9500616a049995c0d23e070534a41b2ddbec1495 (diff) | |
download | llvm-71d83bb426104fb77605382c61968aaf55b537b8.zip llvm-71d83bb426104fb77605382c61968aaf55b537b8.tar.gz llvm-71d83bb426104fb77605382c61968aaf55b537b8.tar.bz2 |
Add -fkeep-system-includes modifier for -E
This option will cause -E to preserve the #include directives
for system headers, rather than expanding them into the output.
This can greatly reduce the volume of preprocessed source text
in a test case, making test case reduction simpler.
Note that -fkeep-system-includes is not always appropriate. For
example, if the problem you want to reproduce is induced by a
system header file, it's better to expand those headers fully.
If your source defines symbols that influence the content of a
system header (e.g., _POSIX_SOURCE) then -E will eliminate the
definition, potentially changing the meaning of the preprocessed
source. If you use -isystem to point to non-system headers, for
example to suppress warnings in third-party software, those will
not be expanded and might make the preprocessed source less useful
as a test case.
Diffstat (limited to 'clang/lib/Basic/SourceManager.cpp')
0 files changed, 0 insertions, 0 deletions