[cfe-dev] Error while trying to load a compilation database:

Jonathan Roelofs via cfe-dev cfe-dev at lists.llvm.org
Wed Feb 3 08:02:11 PST 2016



On 2/3/16 8:16 AM, phi clang wrote:
>
> ​Thanx Jon
> It works !! :)
> One last 'cosmetic' is there a way to have -fix-errors producing another
> file instead of trashing the source file, or to have a backup of the
> original file, so basically tidy c.c would produce c.c.new and leave c.c
> intact OR tidy c.c would backup c.c into c.c.back  and patch c.c

I don't remember. I'd check `clang-tidy -help`, or put the relevant 
source files in version control (or both).


Jon

>
> If not possible it is easy to make a script around clang-tidy
>
> Cheers,
> Phi
>

-- 
Jon Roelofs
jonathan at codesourcery.com
CodeSourcery / Mentor Embedded



More information about the cfe-dev mailing list