clang-tidy: improve my test for readability-redundant-declaration
authorDaniel Marjamaki <daniel.marjamaki@evidente.se>
Mon, 21 Nov 2016 16:08:17 +0000 (16:08 +0000)
committerDaniel Marjamaki <daniel.marjamaki@evidente.se>
Mon, 21 Nov 2016 16:08:17 +0000 (16:08 +0000)
llvm-svn: 287550

clang-tools-extra/test/clang-tidy/readability-redundant-declaration.cpp

index 19decec..e68b7f6 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %check_clang_tidy %s readability-redundant-declaration %t -- -- -target x86_64-unknown-unknown
+// RUN: %check_clang_tidy %s readability-redundant-declaration %t
 
 extern int Xyz;
 extern int Xyz;
@@ -24,7 +24,7 @@ static int f() {}
 
 // Original check crashed for the code below.
 namespace std {
-  typedef long unsigned int size_t;
+  typedef decltype(sizeof(0)) size_t;
 }
 void* operator new(std::size_t) __attribute__((__externally_visible__));
 void* operator new[](std::size_t) __attribute__((__externally_visible__));