[PATCH] D55848: [clang-tidy] Add export-fixes flag to clang-tidy-diff
Julie Hockett via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 21 09:28:51 PST 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL349930: [clang-tidy] Add export-fixes flag to clang-tidy-diff (authored by juliehockett, committed by ).
Herald added a subscriber: llvm-commits.
Changed prior to commit:
https://reviews.llvm.org/D55848?vs=178757&id=179301#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D55848/new/
https://reviews.llvm.org/D55848
Files:
clang-tools-extra/trunk/clang-tidy/tool/clang-tidy-diff.py
Index: clang-tools-extra/trunk/clang-tidy/tool/clang-tidy-diff.py
===================================================================
--- clang-tools-extra/trunk/clang-tidy/tool/clang-tidy-diff.py
+++ clang-tools-extra/trunk/clang-tidy/tool/clang-tidy-diff.py
@@ -57,6 +57,9 @@
default='')
parser.add_argument('-path', dest='build_path',
help='Path used to read a compile command database.')
+ parser.add_argument('-export-fixes', metavar='FILE', dest='export_fixes',
+ help='Create a yaml file to store suggested fixes in, '
+ 'which can be applied with clang-apply-replacements.')
parser.add_argument('-extra-arg', dest='extra_arg',
action='append', default=[],
help='Additional argument to append to the compiler '
@@ -122,6 +125,8 @@
command.append('-line-filter=' + quote + line_filter_json + quote)
if args.fix:
command.append('-fix')
+ if args.export_fixes:
+ command.append('-export-fixes=' + args.export_fixes)
if args.checks != '':
command.append('-checks=' + quote + args.checks + quote)
if args.quiet:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55848.179301.patch
Type: text/x-patch
Size: 1181 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20181221/81553695/attachment.bin>
More information about the cfe-commits
mailing list