diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-06-11 19:05:55 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-06-11 19:05:55 +0000 |
| commit | 96b033006d9959b2e944779ea8836f2c81cc7e2b (patch) | |
| tree | a187bb3aa55dd012220c386b28416bbe87e7e9cc /clang/unittests/Format/FormatTest.cpp | |
| parent | 5c4f829424b0e9b3308b716f5874c9a3a978ac6a (diff) | |
| download | bcm5719-llvm-96b033006d9959b2e944779ea8836f2c81cc7e2b.tar.gz bcm5719-llvm-96b033006d9959b2e944779ea8836f2c81cc7e2b.zip | |
Use std::error_code instead of llvm::error_code.
This is an update for a llvm api change.
llvm-svn: 210688
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
| -rw-r--r-- | clang/unittests/Format/FormatTest.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp index f474c42144d..f8bf85bdbab 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/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" |

