Author: Alexandre Ganea Date: 2024-01-18T13:06:12-05:00 New Revision: cb67dc19256565d15f6bed0e9808f4026ca04995
URL: https://github.com/llvm/llvm-project/commit/cb67dc19256565d15f6bed0e9808f4026ca04995 DIFF: https://github.com/llvm/llvm-project/commit/cb67dc19256565d15f6bed0e9808f4026ca04995.diff LOG: [lldb] Silence narrowing conversion warning with MSVC Fixes: ``` [13/270] Building CXX object tools\lldb\unittests\Core\CMakeFiles\LLDBCoreTests.dir\DumpDataExtractorTest.cpp.obj C:\git\llvm-project\lldb\unittests\Core\DumpDataExtractorTest.cpp(140): warning C4305: 'argument': truncation from 'double' to 'const std::complex<float>::_Ty' ``` Added: Modified: lldb/unittests/DataFormatter/StringPrinterTests.cpp Removed: ################################################################################ diff --git a/lldb/unittests/DataFormatter/StringPrinterTests.cpp b/lldb/unittests/DataFormatter/StringPrinterTests.cpp index ac4116139beb20..74136b6763ecac 100644 --- a/lldb/unittests/DataFormatter/StringPrinterTests.cpp +++ b/lldb/unittests/DataFormatter/StringPrinterTests.cpp @@ -72,7 +72,7 @@ TEST(StringPrinterTests, CxxASCII) { EXPECT_EQ(fmt("🥑"), QUOTE("🥑")); // Octal (\nnn), hex (\xnn), extended octal (\unnnn or \Unnnnnnnn). - EXPECT_EQ(fmt("\uD55C"), QUOTE("\uD55C")); + EXPECT_EQ(fmt(L"\uD55C"), QUOTE(L"\uD55C")); EXPECT_EQ(fmt("\U00010348"), QUOTE("\U00010348")); EXPECT_EQ(fmt("\376"), QUOTE(R"(\xfe)")); // \376 is 254 in decimal. _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits