[PATCH] D27140: Allow clang to write compilation database records

Joerg Sonnenberger via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 28 16:55:12 PST 2016


joerg updated this revision to Diff 79482.
joerg added a comment.

Move implementation into the Clang class, keep track of the raw_fd_stream. This avoids reopening it on multiple inputs and removes the need for append mode. Short circuit the function when -### is present. Add proper diagnostics on open failure.

Still not completely happy with the place and the associated need for the mutable member.


https://reviews.llvm.org/D27140

Files:
  docs/JSONCompilationDatabase.rst
  include/clang/Basic/DiagnosticDriverKinds.td
  include/clang/Driver/Options.td
  lib/Driver/Tools.cpp
  lib/Driver/Tools.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27140.79482.patch
Type: text/x-patch
Size: 6023 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20161129/ec899eec/attachment-0001.bin>


More information about the cfe-commits mailing list