diff options
author | Sam McCall <sam.mccall@gmail.com> | 2022-11-30 15:59:23 +0100 |
---|---|---|
committer | Sam McCall <sam.mccall@gmail.com> | 2022-12-02 13:16:58 +0100 |
commit | 1a8dd7425873fae55a38cbdb41cccb1f17c82e8c (patch) | |
tree | 3a6a36afe266b8df94e82463bd7e76d543c1b369 /llvm/lib/CodeGen/StackProtector.cpp | |
parent | 6dc6f436cbf4a3e6c123cf801f02927ae406c1e6 (diff) | |
download | llvm-1a8dd7425873fae55a38cbdb41cccb1f17c82e8c.zip llvm-1a8dd7425873fae55a38cbdb41cccb1f17c82e8c.tar.gz llvm-1a8dd7425873fae55a38cbdb41cccb1f17c82e8c.tar.bz2 |
[include-cleaner] clang-include-cleaner can print/apply edits
This adds command-line flags to the tool:
+ -print: prints changed source code
+ -print=changes: prints headers added/removed
+ -edit: rewrites code in place
+ -insert=0/-remove=0: disables additions/deletions for the above
These are supported by a couple of new functions dumped into Analysis:
analyze() sits on top of walkUsed and makes used/unused decisions for
Includes. fixIncludes() applies those results to source code.
Differential Revision: https://reviews.llvm.org/D139013
Diffstat (limited to 'llvm/lib/CodeGen/StackProtector.cpp')
0 files changed, 0 insertions, 0 deletions