[PATCH] D33272: Method loadFromCommandLine should be able to report errors
Serge Pavlov via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed May 17 05:10:58 PDT 2017
sepavloff created this revision.
Now FixedCompilationDatabase::loadFromCommandLine has no means to report
which error occurred if it fails to create compilation object. This is
a block for implementing https://reviews.llvm.org/D33013, because after that change driver refuses
to create compilation if command line contains erroneous options.
This change adds additional argument to loadFromCommandLine, which is
assigned error message text if compilation object was not created. This is
the same way as other methods of CompilationDatabase report failure.
https://reviews.llvm.org/D33272
Files:
include/clang/Tooling/CompilationDatabase.h
lib/Frontend/CreateInvocationFromCommandLine.cpp
lib/Tooling/CommonOptionsParser.cpp
lib/Tooling/CompilationDatabase.cpp
lib/Tooling/Tooling.cpp
unittests/Tooling/CompilationDatabaseTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33272.99272.patch
Type: text/x-patch
Size: 10383 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170517/b0b6e7db/attachment-0001.bin>
More information about the cfe-commits
mailing list