[PATCH] D17756: [clang-tidy] Make 'modernize-pass-by-value' fix work on header files.

Alexander Kornienko via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 1 02:15:44 PST 2016


alexfh accepted this revision.
alexfh added a comment.
This revision is now accepted and ready to land.

LG. Thanks!


================
Comment at: test/clang-tidy/modernize-pass-by-value-header.cpp:1
@@ +1,2 @@
+// RUN: cp %S/Inputs/modernize-pass-by-value/header.h %T/pass-by-value-header.h
+// RUN: clang-tidy %s -checks='-*,modernize-pass-by-value' -header-filter='.*' -fix -- -std=c++11 -I %T | FileCheck %s -check-prefix=CHECK-MESSAGES -implicit-check-not="{{warning|error}}:"
----------------
This might need `// REQUIRES: shell` (please find other tests using `cp` to check this).


Repository:
  rL LLVM

http://reviews.llvm.org/D17756





More information about the cfe-commits mailing list