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 | 534f692b4d1e6dd28dedebaee69a520fb1a73326 (patch) | |
tree | 7bb896bea45b7fd4a02eedc202eebc684db2e6ff /unittests/Format | |
parent | d765b5b8c62bcf023dd8a4fcada3d377d52b450d (diff) | |
download | clang-534f692b4d1e6dd28dedebaee69a520fb1a73326.tar.gz clang-534f692b4d1e6dd28dedebaee69a520fb1a73326.tar.bz2 clang-534f692b4d1e6dd28dedebaee69a520fb1a73326.tar.xz |
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
Diffstat (limited to 'unittests/Format')
-rw-r--r-- | unittests/Format/FormatTest.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
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" |