[clang-tools-extra] r287550 - clang-tidy: improve my test for readability-redundant-declaration
Daniel Marjamaki via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 21 08:08:17 PST 2016
Author: danielmarjamaki
Date: Mon Nov 21 10:08:17 2016
New Revision: 287550
URL: http://llvm.org/viewvc/llvm-project?rev=287550&view=rev
Log:
clang-tidy: improve my test for readability-redundant-declaration
Modified:
clang-tools-extra/trunk/test/clang-tidy/readability-redundant-declaration.cpp
Modified: clang-tools-extra/trunk/test/clang-tidy/readability-redundant-declaration.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/test/clang-tidy/readability-redundant-declaration.cpp?rev=287550&r1=287549&r2=287550&view=diff
==============================================================================
--- clang-tools-extra/trunk/test/clang-tidy/readability-redundant-declaration.cpp (original)
+++ clang-tools-extra/trunk/test/clang-tidy/readability-redundant-declaration.cpp Mon Nov 21 10:08:17 2016
@@ -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__));
More information about the cfe-commits
mailing list