[PATCH] D16953: Enhance clang-tidy modernize-redundant-void-arg check to apply fixes to header files

Richard via cfe-commits cfe-commits at lists.llvm.org
Sat Feb 6 21:50:28 PST 2016


LegalizeAdulthood created this revision.
LegalizeAdulthood added a reviewer: alexfh.
LegalizeAdulthood added a subscriber: cfe-commits.

Update `check_clang_tidy.py` to handle fixes applied to header files by adding `--header-filter` argument that:
- Passes `-header-filter` down to `clang-tidy`
- Copies named header to temporary directory where `clang-tidy` is run
- Performs `FileCheck` checks on the header for `CHECK-MESSAGES`
- Performs `FileCheck` checks on the header for `CHECK-FIXES`

Fixes PR25894

http://reviews.llvm.org/D16953

Files:
  clang-tidy/modernize/RedundantVoidArgCheck.cpp
  test/clang-tidy/check_clang_tidy.py
  test/clang-tidy/modernize-redundant-void-arg.cpp
  test/clang-tidy/modernize-redundant-void-arg.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16953.47117.patch
Type: text/x-patch
Size: 11768 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160207/d74699c1/attachment-0001.bin>


More information about the cfe-commits mailing list