From: NAKAMURA Takumi Date: Wed, 25 Jun 2014 04:34:00 +0000 (+0000) Subject: Reformat. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d3235e0529e8eb67da2b2d020653881fcd0572ec;p=platform%2Fupstream%2Fllvm.git Reformat. llvm-svn: 211661 --- diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp index 1488dc6..11e1e61 100644 --- a/clang/lib/Driver/Tools.cpp +++ b/clang/lib/Driver/Tools.cpp @@ -6963,9 +6963,9 @@ static StringRef getLinuxDynamicLinker(const ArgList &Args, return "/lib/ld-linux-mipsn8.so.1"; return "/lib/ld.so.1"; } else if (ToolChain.getArch() == llvm::Triple::mips64 || - ToolChain.getArch() == llvm::Triple::mips64el) { - std::string LinkerFile = mips::isNaN2008(Args) ? "ld-linux-mipsn8.so.1" - : "ld.so.1"; + ToolChain.getArch() == llvm::Triple::mips64el) { + std::string LinkerFile = + mips::isNaN2008(Args) ? "ld-linux-mipsn8.so.1" : "ld.so.1"; if (mips::hasMipsAbiArg(Args, "n32")) return "/lib32/" + LinkerFile; return "/lib64/" + LinkerFile; diff --git a/clang/unittests/Basic/VirtualFileSystemTest.cpp b/clang/unittests/Basic/VirtualFileSystemTest.cpp index b0b3f87..f9666b2 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 Contents = { "/file2", "/file1" }; + std::vector 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("/dir2/foo")); { - std::vector Contents = { "/dir2", "/file2", "/dir1", "/file1" }; + std::vector 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 Contents = { "/file3", "/file2", "/file1" }; + std::vector 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 Contents = { "/hiddenByUp", "/onlyInUp", - "/hiddenByMid", "/onlyInMid", "/onlyInLow" }; + std::vector 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 Contents = { "//root/file1", "//root/file2", - "//root/file3", "//root/foo" }; + std::vector Contents = {"//root/file1", "//root/file2", + "//root/file3", "//root/foo"}; checkContents(O->dir_begin("//root/", EC), Contents); } { - std::vector Contents = { - "//root/foo/bar/a", "//root/foo/bar/b" }; + std::vector Contents = {"//root/foo/bar/a", + "//root/foo/bar/b"}; checkContents(O->dir_begin("//root/foo/bar", EC), Contents); } } -