From 13e45e135f8948eb84432ac4e66284d96763b94d Mon Sep 17 00:00:00 2001 From: Daniel Marjamaki Date: Mon, 21 Nov 2016 16:08:17 +0000 Subject: [PATCH] clang-tidy: improve my test for readability-redundant-declaration llvm-svn: 287550 --- .../test/clang-tidy/readability-redundant-declaration.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clang-tools-extra/test/clang-tidy/readability-redundant-declaration.cpp b/clang-tools-extra/test/clang-tidy/readability-redundant-declaration.cpp index 19decec..e68b7f6 100644 --- a/clang-tools-extra/test/clang-tidy/readability-redundant-declaration.cpp +++ b/clang-tools-extra/test/clang-tidy/readability-redundant-declaration.cpp @@ -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__)); -- 2.7.4