summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Basic/VirtualFileSystemTest.cpp
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2014-06-25 04:34:00 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2014-06-25 04:34:00 +0000
commitd3235e0529e8eb67da2b2d020653881fcd0572ec (patch)
tree8cfbb1f529eef6e7e9651590b8de3a08731e5208 /clang/unittests/Basic/VirtualFileSystemTest.cpp
parentdf9b15905f259a614f4c8dfc81afff19f9dcb382 (diff)
downloadbcm5719-llvm-d3235e0529e8eb67da2b2d020653881fcd0572ec.tar.gz
bcm5719-llvm-d3235e0529e8eb67da2b2d020653881fcd0572ec.zip
Reformat.
llvm-svn: 211661
Diffstat (limited to 'clang/unittests/Basic/VirtualFileSystemTest.cpp')
-rw-r--r--clang/unittests/Basic/VirtualFileSystemTest.cpp19
1 files changed, 9 insertions, 10 deletions
diff --git a/clang/unittests/Basic/VirtualFileSystemTest.cpp b/clang/unittests/Basic/VirtualFileSystemTest.cpp
index b0b3f87660e..f9666b21563 100644
--- a/clang/unittests/Basic/VirtualFileSystemTest.cpp
+++ b/clang/unittests/Basic/VirtualFileSystemTest.cpp
@@ -334,7 +334,7 @@ TEST(VirtualFileSystemTest, OverlayIteration) {
Upper->addRegularFile("/file2");
{
- std::vector<std::string> Contents = { "/file2", "/file1" };
+ std::vector<std::string> Contents = {"/file2", "/file1"};
checkContents(O->dir_begin("/", EC), Contents);
}
@@ -344,7 +344,7 @@ TEST(VirtualFileSystemTest, OverlayIteration) {
Upper->addRegularFile("/dir2/foo");
checkContents(O->dir_begin("/dir2", EC), ArrayRef<std::string>("/dir2/foo"));
{
- std::vector<std::string> Contents = { "/dir2", "/file2", "/dir1", "/file1" };
+ std::vector<std::string> Contents = {"/dir2", "/file2", "/dir1", "/file1"};
checkContents(O->dir_begin("/", EC), Contents);
}
}
@@ -367,7 +367,7 @@ TEST(VirtualFileSystemTest, ThreeLevelIteration) {
Lower->addRegularFile("/file1");
Upper->addRegularFile("/file3");
{
- std::vector<std::string> Contents = { "/file3", "/file2", "/file1" };
+ std::vector<std::string> Contents = {"/file3", "/file2", "/file1"};
checkContents(O->dir_begin("/", EC), Contents);
}
}
@@ -391,8 +391,8 @@ TEST(VirtualFileSystemTest, HiddenInIteration) {
Upper->addRegularFile("/onlyInUp", sys::fs::owner_all);
Upper->addRegularFile("/hiddenByUp", sys::fs::owner_all);
{
- std::vector<std::string> Contents = { "/hiddenByUp", "/onlyInUp",
- "/hiddenByMid", "/onlyInMid", "/onlyInLow" };
+ std::vector<std::string> Contents = {
+ "/hiddenByUp", "/onlyInUp", "/hiddenByMid", "/onlyInMid", "/onlyInLow"};
checkContents(O->dir_begin("/", EC), Contents);
}
@@ -817,15 +817,14 @@ TEST_F(VFSFromYAMLTest, DirectoryIteration) {
std::error_code EC;
{
- std::vector<std::string> Contents = { "//root/file1", "//root/file2",
- "//root/file3", "//root/foo" };
+ std::vector<std::string> Contents = {"//root/file1", "//root/file2",
+ "//root/file3", "//root/foo"};
checkContents(O->dir_begin("//root/", EC), Contents);
}
{
- std::vector<std::string> Contents = {
- "//root/foo/bar/a", "//root/foo/bar/b" };
+ std::vector<std::string> Contents = {"//root/foo/bar/a",
+ "//root/foo/bar/b"};
checkContents(O->dir_begin("//root/foo/bar", EC), Contents);
}
}
-
OpenPOWER on IntegriCloud