[cfe-dev] compile_commands.json for Windows/MSVC

Richard legalize at xmission.com
Mon Aug 12 19:01:49 PDT 2013


Some of the clang based tools, such as clang-check, require a
compile_commands.json file which is generated by CMake.  I tried
running Windows CMake to generate this file, but it issued an error
message and didn't write the file.

So I hacked one together using a Visual Studio project build log.  It
gets me by, but lots of warnings are spewed about unrecognized command
line arguments.

Does anyone else have a better method for generating these?  Maybe I
just need the right CMake incantation.
-- 
"The Direct3D Graphics Pipeline" free book <http://tinyurl.com/d3d-pipeline>
     The Computer Graphics Museum <http://computergraphicsmuseum.org>
         The Terminals Wiki <http://terminals.classiccmp.org>
  Legalize Adulthood! (my blog) <http://legalizeadulthood.wordpress.com>



More information about the cfe-dev mailing list