<div dir="ltr"><div>2014-10-24 18:36 GMT+02:00 Manuel Klimek <<a href="mailto:klimek@google.com">klimek@google.com</a>>:<br>><br>> To get a compilation database from a project:<br>> <a href="https://github.com/rizsotto/Bear">https://github.com/rizsotto/Bear</a><br>> might help.<br></div><div><br></div>I did try bear some time back, but it did not work. Or to be more accurate, it worked "some". For some files, the compilation failed with an error i can't recall right now, and for the cpp files that did compile correctly, the result compile_command.json was corrupt (by the looks of it, it was a race condition, overlapping lines, weird NULL characters at the end of the file).<br><br><br>On Fri Oct 24 2014 at 9:11:54 AM Reid Kleckner <<a href="mailto:rnk@google.com">rnk@google.com</a>> wrote:<br>><br>> The tooling infrastructure expects your compilation database to<br>> contain flags for the main gcc-style frontend, not the -cc1 subprocess<br>> invocation. So -### won't help you here.<div><br></div><div>Not really relevant for me, but is this because for a clang tool to work properly, the gcc interface is always sufficient? (include paths, etc.)</div><div><br></div><div>> I believe we have some flag that prints the full clang command line<br>> during the compile, but I've forgotten what it is.</div><div><br></div><div>That would be extremely useful for me, does anyone remember it? :)<br><br><div><br></div></div></div>