cms-sw/cmssw — pull request #5657 by davidlt (2014-10-02 16:07:49+00:00)
Title: condformats_serialization_generate.py: fix libClang ussage

libClang is being used incorrectly. libClang does not understand what
language you are attemping to compile, it assumes C/ObjC as default.

This comes from headers.h name. Clang relies on correct extension to
select a language, but it cannot be done with header file. Same
extension is used for ObjC/C/C++.

The first argument must not be none, but a patch to header file.
An additional option must be passed '-xc++' to tell Clang that
it will be C++.

If the header file is passed as argument to libClang then the order of
arguments is important! Otherwise libClang will ignore flags like -xc++,
and go for the default.

This behaviors are documented in Clang source code.

Because of this on Darwin C++ exception handling is disabled, there is
not need for in C front-end. Simply put you loose all default C++
language options.

This resolves majority of ERROR: messages from
condformats_serialization_generate.py

A few a left, but are the same as in CLANG IBs. More people should join
the effort to clean it up. There is <10 such issues, I might fix them. For
yet unknown reason their are not visible on standard CMSSW IB on Linux,
just on CLANG.

Signed-off-by: David Abdurachmanov