Author: Arthur O'Dwyer Date: 2022-02-16T10:42:58-05:00 New Revision: 597f2bcee895c1a9cc18067b85d6846137c11816
URL: https://github.com/llvm/llvm-project/commit/597f2bcee895c1a9cc18067b85d6846137c11816 DIFF: https://github.com/llvm/llvm-project/commit/597f2bcee895c1a9cc18067b85d6846137c11816.diff LOG: [clang] [test] [NFC] Eliminate some hard tabs in tests "cxx2b-consteval-if.cpp" was showing up misindented. Added: Modified: clang/test/SemaCXX/cxx2b-consteval-if.cpp clang/test/SemaCXX/typo-correction-cxx17.cpp clang/test/SemaCXX/warn-static-function-inheader.cpp Removed: ################################################################################ diff --git a/clang/test/SemaCXX/cxx2b-consteval-if.cpp b/clang/test/SemaCXX/cxx2b-consteval-if.cpp index ca65f2733fc1d..68921b3852f22 100644 --- a/clang/test/SemaCXX/cxx2b-consteval-if.cpp +++ b/clang/test/SemaCXX/cxx2b-consteval-if.cpp @@ -19,9 +19,9 @@ constexpr auto h() { constexpr auto i() { if consteval { if consteval { // expected-warning {{consteval if is always true in an immediate context}} - return 1; - } - return 2; + return 1; + } + return 2; } else { return 1.0; // expected-error {{'auto' in return type deduced as 'double' here but deduced as 'int' in earlier return statement}} } diff --git a/clang/test/SemaCXX/typo-correction-cxx17.cpp b/clang/test/SemaCXX/typo-correction-cxx17.cpp index f137499753422..d6a8994f74e13 100644 --- a/clang/test/SemaCXX/typo-correction-cxx17.cpp +++ b/clang/test/SemaCXX/typo-correction-cxx17.cpp @@ -2,6 +2,6 @@ namespace decomp_decl { void f() { - auto [this_is_a_typo] = this_is_a_typp(); // expected-error{{use of undeclared identifier 'this_is_a_typp'}} + auto [this_is_a_typo] = this_is_a_typp(); // expected-error{{use of undeclared identifier 'this_is_a_typp'}} } } diff --git a/clang/test/SemaCXX/warn-static-function-inheader.cpp b/clang/test/SemaCXX/warn-static-function-inheader.cpp index 30386d9a258c8..9eccfca933c78 100644 --- a/clang/test/SemaCXX/warn-static-function-inheader.cpp +++ b/clang/test/SemaCXX/warn-static-function-inheader.cpp @@ -7,6 +7,6 @@ static void another(void) { // expected-warning {{function 'another' is not need template <typename T> void foo(void) { - thing(); - another(); + thing(); + another(); } _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits