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__)); _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits