[cfe-commits] r89100 - /cfe/trunk/lib/Frontend/FrontendOptions.cpp

Daniel Dunbar daniel at zuster.org
Tue Nov 17 14:05:13 PST 2009


I don't buy it, I think something else is wrong. (My) gcc doesn't
recognize .hpp as c++ either, and this change is to clang-cc not the
driver, which always passes -x. So I don't get what this fixes?

 - Daniel

On Tue, Nov 17, 2009 at 7:36 AM, Nuno Lopes <nunoplopes at sapo.pt> wrote:
> Author: nlopes
> Date: Tue Nov 17 09:36:35 2009
> New Revision: 89100
>
> URL: http://llvm.org/viewvc/llvm-project?rev=89100&view=rev
> Log:
> recognize .hpp as c++ (needed for ./configure'ing boost)
>
> Modified:
>    cfe/trunk/lib/Frontend/FrontendOptions.cpp
>
> Modified: cfe/trunk/lib/Frontend/FrontendOptions.cpp
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/FrontendOptions.cpp?rev=89100&r1=89099&r2=89100&view=diff
>
> ==============================================================================
> --- cfe/trunk/lib/Frontend/FrontendOptions.cpp (original)
> +++ cfe/trunk/lib/Frontend/FrontendOptions.cpp Tue Nov 17 09:36:35 2009
> @@ -25,7 +25,7 @@
>     .Case("mii", IK_PreprocessedObjCXX)
>     .Case("C", IK_CXX)
>     .Cases("C", "cc", "cp", IK_CXX)
> -    .Cases("cpp", "CPP", "c++", "cxx", IK_CXX)
> +    .Cases("cpp", "CPP", "c++", "cxx", "hpp", IK_CXX)
>     .Case("cl", IK_OpenCL)
>     .Default(IK_C);
>  }
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>




More information about the cfe-commits mailing list