[clang-tools-extra] r299752 - [clang-tidy] A couple of minor fixes in modernize-use-using tests
Alexander Kornienko via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 7 02:41:27 PDT 2017
Author: alexfh
Date: Fri Apr 7 04:41:27 2017
New Revision: 299752
URL: http://llvm.org/viewvc/llvm-project?rev=299752&view=rev
Log:
[clang-tidy] A couple of minor fixes in modernize-use-using tests
Modified:
clang-tools-extra/trunk/test/clang-tidy/modernize-use-using-macros.cpp
clang-tools-extra/trunk/test/clang-tidy/modernize-use-using.cpp
Modified: clang-tools-extra/trunk/test/clang-tidy/modernize-use-using-macros.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/test/clang-tidy/modernize-use-using-macros.cpp?rev=299752&r1=299751&r2=299752&view=diff
==============================================================================
--- clang-tools-extra/trunk/test/clang-tidy/modernize-use-using-macros.cpp (original)
+++ clang-tools-extra/trunk/test/clang-tidy/modernize-use-using-macros.cpp Fri Apr 7 04:41:27 2017
@@ -1,6 +1,6 @@
// RUN: %check_clang_tidy %s modernize-use-using %t -- \
// RUN: -config="{CheckOptions: [{key: modernize-use-using.IgnoreMacros, value: 0}]}" \
-// RUN: -- -std=c++11 -I %S/Inputs/modernize-use-using
+// RUN: -- -std=c++11
#define CODE typedef int INT
Modified: clang-tools-extra/trunk/test/clang-tidy/modernize-use-using.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/test/clang-tidy/modernize-use-using.cpp?rev=299752&r1=299751&r2=299752&view=diff
==============================================================================
--- clang-tools-extra/trunk/test/clang-tidy/modernize-use-using.cpp (original)
+++ clang-tools-extra/trunk/test/clang-tidy/modernize-use-using.cpp Fri Apr 7 04:41:27 2017
@@ -155,8 +155,9 @@ namespace my_space {
}
#define lol 4
-typedef unsigned Map[lol];
+typedef unsigned Map[lol];
// CHECK-MESSAGES: :[[@LINE-1]]:1: warning: use 'using' instead of 'typedef'
+// CHECK-FIXES: typedef unsigned Map[lol];
typedef void (*fun_type)();
// CHECK-MESSAGES: :[[@LINE-1]]:1: warning: use 'using' instead of 'typedef'
More information about the cfe-commits
mailing list