From 534f692b4d1e6dd28dedebaee69a520fb1a73326 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Wed, 11 Jun 2014 19:05:55 +0000 Subject: Use std::error_code instead of llvm::error_code. This is an update for a llvm api change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@210688 91177308-0d34-0410-b5e6-96231b3b80d8 --- unittests/Format/FormatTest.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'unittests/Format') diff --git a/unittests/Format/FormatTest.cpp b/unittests/Format/FormatTest.cpp index f474c42144..f8bf85bdba 100644 --- a/unittests/Format/FormatTest.cpp +++ b/unittests/Format/FormatTest.cpp @@ -8181,7 +8181,7 @@ TEST_F(FormatTest, ParsesConfigurationWithLanguages) { CHECK_PARSE("Language: Cpp\n" "IndentWidth: 12", IndentWidth, 12u); - EXPECT_EQ(llvm::errc::not_supported, + EXPECT_EQ(std::errc::not_supported, parseConfiguration("Language: JavaScript\n" "IndentWidth: 34", &Style)); @@ -8194,9 +8194,9 @@ TEST_F(FormatTest, ParsesConfigurationWithLanguages) { "IndentWidth: 12", IndentWidth, 12u); CHECK_PARSE("IndentWidth: 23", IndentWidth, 23u); - EXPECT_EQ(llvm::errc::not_supported, parseConfiguration("Language: Cpp\n" - "IndentWidth: 34", - &Style)); + EXPECT_EQ(std::errc::not_supported, parseConfiguration("Language: Cpp\n" + "IndentWidth: 34", + &Style)); EXPECT_EQ(23u, Style.IndentWidth); CHECK_PARSE("IndentWidth: 56", IndentWidth, 56u); EXPECT_EQ(FormatStyle::LK_JavaScript, Style.Language); @@ -8254,7 +8254,7 @@ TEST_F(FormatTest, ParsesConfigurationWithLanguages) { EXPECT_EQ(789u, Style.TabWidth); - EXPECT_EQ(llvm::errc::invalid_argument, + EXPECT_EQ(std::errc::invalid_argument, parseConfiguration("---\n" "Language: JavaScript\n" "IndentWidth: 56\n" @@ -8262,7 +8262,7 @@ TEST_F(FormatTest, ParsesConfigurationWithLanguages) { "IndentWidth: 78\n" "...\n", &Style)); - EXPECT_EQ(llvm::errc::invalid_argument, + EXPECT_EQ(std::errc::invalid_argument, parseConfiguration("---\n" "Language: JavaScript\n" "IndentWidth: 56\n" -- cgit v1.2.3