[PATCH] D27138: Extend CompilationDatabase by a field for the output filename
Joerg Sonnenberger via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 25 13:29:39 PST 2016
joerg created this revision.
joerg added a reviewer: klimek.
joerg added a subscriber: cfe-commits.
joerg set the repository for this revision to rL LLVM.
In bigger projects like an Operating System, the same source code is often compiled in slightly different ways. This could be the difference between PIC and non-PIC code for static vs dynamic libraries, it could also be the difference between size optimised versions of tools for ramdisk images. At the moment, the compilation database has no way to distinguish such cases. As first step, add a field in the JSON format for it and process it accordingly.
Repository:
rL LLVM
https://reviews.llvm.org/D27138
Files:
docs/JSONCompilationDatabase.rst
include/clang/Tooling/CompilationDatabase.h
include/clang/Tooling/JSONCompilationDatabase.h
lib/Tooling/CompilationDatabase.cpp
lib/Tooling/JSONCompilationDatabase.cpp
unittests/Tooling/CompilationDatabaseTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27138.79320.patch
Type: text/x-patch
Size: 7520 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20161125/d60c1242/attachment.bin>
More information about the cfe-commits
mailing list