summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/unittests/clang-modernize/IncludeExcludeTest.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-06-12 13:32:11 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-06-12 13:32:11 +0000
commit15c5784d3ce42afcd5b641532912d3b05d97d36b (patch)
treecbf024d55db787349c2e3bce8637a14c71f3b16c /clang-tools-extra/unittests/clang-modernize/IncludeExcludeTest.cpp
parent559dd851b627576d85525cd3ad42488b7df83f1b (diff)
downloadbcm5719-llvm-15c5784d3ce42afcd5b641532912d3b05d97d36b.tar.gz
bcm5719-llvm-15c5784d3ce42afcd5b641532912d3b05d97d36b.zip
Replace llvm::error_code with std::error_code.
llvm-svn: 210776
Diffstat (limited to 'clang-tools-extra/unittests/clang-modernize/IncludeExcludeTest.cpp')
-rw-r--r--clang-tools-extra/unittests/clang-modernize/IncludeExcludeTest.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/clang-tools-extra/unittests/clang-modernize/IncludeExcludeTest.cpp b/clang-tools-extra/unittests/clang-modernize/IncludeExcludeTest.cpp
index 2b703dbaf84..c65d341e20a 100644
--- a/clang-tools-extra/unittests/clang-modernize/IncludeExcludeTest.cpp
+++ b/clang-tools-extra/unittests/clang-modernize/IncludeExcludeTest.cpp
@@ -16,11 +16,11 @@
TEST(IncludeExcludeTest, ParseString) {
IncludeExcludeInfo IEManager;
- llvm::error_code Err = IEManager.readListFromString(
+ std::error_code Err = IEManager.readListFromString(
/*include=*/ "a,b/b2,c/c2,d/../d2/../d3",
/*exclude=*/ "a/af.cpp,a/a2,b/b2/b2f.cpp,c/c2");
- ASSERT_EQ(Err, llvm::error_code());
+ ASSERT_EQ(Err, std::error_code());
// If the file does not appear on the include list then it is not safe to
// transform. Files are not safe to transform by default.
@@ -61,11 +61,11 @@ TEST(IncludeExcludeTest, ParseString) {
TEST(IncludeExcludeTest, ParseStringCases) {
IncludeExcludeInfo IEManager;
- llvm::error_code Err = IEManager.readListFromString(
+ std::error_code Err = IEManager.readListFromString(
/*include=*/ "a/.,b/b2/,c/c2/c3/../../c4/,d/d2/./d3/,/e/e2/.",
/*exclude=*/ "");
- ASSERT_EQ(Err, llvm::error_code());
+ ASSERT_EQ(Err, std::error_code());
EXPECT_TRUE(IEManager.isFileIncluded("a/f.cpp"));
EXPECT_TRUE(IEManager.isFileIncluded("b/b2/f.cpp"));
@@ -123,10 +123,10 @@ TEST(IncludeExcludeFileTest, UNIXFile) {
ASSERT_NO_FATAL_FAILURE(UnixFiles.CreateFiles(/* UnixMode= */true));
IncludeExcludeInfo IEManager;
- llvm::error_code Err = IEManager.readListFromFile(
+ std::error_code Err = IEManager.readListFromFile(
UnixFiles.IncludeDataPath.c_str(), UnixFiles.ExcludeDataPath.c_str());
- ASSERT_EQ(Err, llvm::error_code());
+ ASSERT_EQ(Err, std::error_code());
EXPECT_FALSE(IEManager.isFileIncluded("f.cpp"));
EXPECT_TRUE(IEManager.isFileIncluded("a/f.cpp"));
@@ -138,10 +138,10 @@ TEST(IncludeExcludeFileTest, DOSFile) {
ASSERT_NO_FATAL_FAILURE(DOSFiles.CreateFiles(/* UnixMode= */false));
IncludeExcludeInfo IEManager;
- llvm::error_code Err = IEManager.readListFromFile(
+ std::error_code Err = IEManager.readListFromFile(
DOSFiles.IncludeDataPath.c_str(), DOSFiles.ExcludeDataPath.c_str());
- ASSERT_EQ(Err, llvm::error_code());
+ ASSERT_EQ(Err, std::error_code());
EXPECT_FALSE(IEManager.isFileIncluded("f.cpp"));
EXPECT_TRUE(IEManager.isFileIncluded("a/f.cpp"));
OpenPOWER on IntegriCloud