On 5 November 2014 16:29, Samuel F Antao <[email protected]> wrote:
> Hi Rafael,
>
> Thanks for the review. I followed your suggestion and used
> getGCCToolchainDir instead. git-clang-format seems not to complain about any
> issues now.

That is odd. Running "git-clang-format master" after applying your
patch to a branch produces the attached patch.

Cheers,
Rafael
diff --git a/lib/Driver/ToolChains.cpp b/lib/Driver/ToolChains.cpp
index 93492f1..5b5067a 100644
--- a/lib/Driver/ToolChains.cpp
+++ b/lib/Driver/ToolChains.cpp
@@ -2092,12 +2092,12 @@ void Generic_ELF::addClangTargetOptions(const ArgList &DriverArgs,
 /// Hexagon Toolchain
 
 std::string Hexagon_TC::GetGnuDir(const std::string &InstalledDir,
-                                    const ArgList &Args) {
+                                  const ArgList &Args) {
 
   // Locate the rest of the toolchain ...
   std::string gcc_toolchain = getGCCToolchainDir(Args);
 
-  if ( !gcc_toolchain.empty() )
+  if (!gcc_toolchain.empty())
     return gcc_toolchain;
 
   std::string InstallRelDir = InstalledDir + "/../../gnu";
@@ -2237,7 +2237,8 @@ void Hexagon_TC::AddClangCXXStdlibIncludeArgs(const ArgList &DriverArgs,
 
   const Driver &D = getDriver();
   std::string Ver(GetGCCLibAndIncVersion());
-  SmallString<128> IncludeDir(Hexagon_TC::GetGnuDir(D.InstalledDir, DriverArgs));
+  SmallString<128> IncludeDir(
+      Hexagon_TC::GetGnuDir(D.InstalledDir, DriverArgs));
 
   llvm::sys::path::append(IncludeDir, "hexagon/include/c++/");
   llvm::sys::path::append(IncludeDir, Ver);
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to