[clang-tools-extra] r270682 - [clang-tidy] Fix typo in test file name.
Benjamin Kramer via cfe-commits
cfe-commits at lists.llvm.org
Wed May 25 02:44:35 PDT 2016
Author: d0k
Date: Wed May 25 04:44:35 2016
New Revision: 270682
URL: http://llvm.org/viewvc/llvm-project?rev=270682&view=rev
Log:
[clang-tidy] Fix typo in test file name.
polo
Added:
clang-tools-extra/trunk/test/clang-tidy/modernize-pass-by-value-macro-header.cpp
- copied, changed from r270599, clang-tools-extra/trunk/test/clang-tidy/modernize-pass-by-value-marco-header.cpp
Removed:
clang-tools-extra/trunk/test/clang-tidy/modernize-pass-by-value-marco-header.cpp
Copied: clang-tools-extra/trunk/test/clang-tidy/modernize-pass-by-value-macro-header.cpp (from r270599, clang-tools-extra/trunk/test/clang-tidy/modernize-pass-by-value-marco-header.cpp)
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/test/clang-tidy/modernize-pass-by-value-macro-header.cpp?p2=clang-tools-extra/trunk/test/clang-tidy/modernize-pass-by-value-macro-header.cpp&p1=clang-tools-extra/trunk/test/clang-tidy/modernize-pass-by-value-marco-header.cpp&r1=270599&r2=270682&rev=270682&view=diff
==============================================================================
(empty)
Removed: clang-tools-extra/trunk/test/clang-tidy/modernize-pass-by-value-marco-header.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/test/clang-tidy/modernize-pass-by-value-marco-header.cpp?rev=270681&view=auto
==============================================================================
--- clang-tools-extra/trunk/test/clang-tidy/modernize-pass-by-value-marco-header.cpp (original)
+++ clang-tools-extra/trunk/test/clang-tidy/modernize-pass-by-value-marco-header.cpp (removed)
@@ -1,16 +0,0 @@
-// RUN: %check_clang_tidy %s modernize-pass-by-value %t -- -- -std=c++11 -isystem %S/Inputs/Headers
-
-// CHECK-FIXES: #include <utility>
-
-#define HEADER <./a.h>
-#include HEADER
-
-struct A {
-};
-
-struct B {
- B(const A &a) : a(a) {}
-// CHECK-MESSAGES: :[[@LINE-1]]:5: warning: pass by value and use std::move [modernize-pass-by-value]
-// CHECK-FIXES: B(A a) : a(std::move(a)) {}
- A a;
-};
More information about the cfe-commits
mailing list