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

Nuno Lopes nunoplopes at sapo.pt
Tue Nov 17 14:19:58 PST 2009


The problem was that if you run 'clang/clang-cc -fsyntax-only file.hpp' the 
file was not being interpreted as a C++ file. gcc, on the other hand, does 
interpret .hpp files correctly as c++.
I don't have the code here handy to be sure, but the problem I was facing 
was something along these lines (which was breaking the detection of boost 
by inkscape's configure).

Nuno

----- Original Message -----
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