[cfe-dev] tooling helper

Dmitri Gribenko gribozavr at gmail.com
Sat Nov 17 13:34:44 PST 2012


On Sat, Nov 17, 2012 at 11:06 PM, Laszlo Nagy
<rizsotto.mailinglist at gmail.com> wrote:
> wrote a small program which might help to use the tools, which are using the
> tooling library. My understanding was that these tools need some compilation
> database. And one format is the JSON compilation database, which comes for
> free in a cmake project. Other projects could have difficulties to generate
> such file. And that's where a tool could help.
>
>   https://github.com/rizsotto/Bear
>
> It runs the build command and intercept the 'exec' calls, filters the
> compiler invocations and generate the output file. (It is using LD_PRELOAD
> from GNU Libc, so it is not really portable.)
>
> I know these kind of tools are out of scope here. But wanted to mention,
> because it could simplify to solve some cases. At least it did to me. ;)

This is very interesting and useful.  Even more, something like this
could help Clang static analyzer to work with build systems that don't
respect CC and CXX environment variables.

Dmitri

-- 
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/



More information about the cfe-dev mailing list