[cfe-commits] r160052 - /cfe/trunk/lib/Driver/Tools.cpp

NAKAMURA Takumi geek4civic at gmail.com
Wed Jul 11 21:00:10 PDT 2012


Nico, I have reverted it in r160103, excuse me.

Failing Tests (3):
    Clang :: Index/complete-cxx-inline-methods.cpp
    Clang :: Index/recursive-cxx-member-calls.cpp
    Clang :: SemaTemplate/inject-templated-friend-post.cpp

An archive of outputs is attached. I will investigate, too.

...Takumi

2012/7/12 Nico Weber <nicolasweber at gmx.de>:
> Author: nico
> Date: Wed Jul 11 11:46:17 2012
> New Revision: 160052
>
> URL: http://llvm.org/viewvc/llvm-project?rev=160052&view=rev
> Log:
> Default to -std=c++11 on Windows.
>
>
> Modified:
>     cfe/trunk/lib/Driver/Tools.cpp
>
> Modified: cfe/trunk/lib/Driver/Tools.cpp
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=160052&r1=160051&r2=160052&view=diff
> ==============================================================================
> --- cfe/trunk/lib/Driver/Tools.cpp (original)
> +++ cfe/trunk/lib/Driver/Tools.cpp Wed Jul 11 11:46:17 2012
> @@ -2124,8 +2124,11 @@
>      // eventually we want to do all the standard defaulting here instead of
>      // splitting it between the driver and clang -cc1.
>      if (!types::isCXX(InputType))
> -        Args.AddAllArgsTranslated(CmdArgs, options::OPT_std_default_EQ,
> -                                  "-std=", /*Joined=*/true);
> +      Args.AddAllArgsTranslated(CmdArgs, options::OPT_std_default_EQ,
> +                                "-std=", /*Joined=*/true);
> +    else if (getToolChain().getTriple().getOS() == llvm::Triple::Win32)
> +      CmdArgs.push_back("-std=c++11");
> +
>      Args.AddLastArg(CmdArgs, options::OPT_trigraphs);
>    }
>
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
-------------- next part --------------
A non-text attachment was scrubbed...
Name: r160052.zip
Type: application/zip
Size: 13989 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120712/d4333f2f/attachment.zip>


More information about the cfe-commits mailing list