llvm-project/clang/lib/Tooling
Serge Pavlov c46064c2a9 Method loadFromCommandLine should be able to report errors
Now FixedCompilationDatabase::loadFromCommandLine has no means to report
which error occurred if it fails to create compilation object. This is
a block for implementing D33013, because after that change driver will
refuse 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.

Differential Revision: https://reviews.llvm.org/D33272

llvm-svn: 303741
2017-05-24 11:57:37 +00:00
..
Core [clang-tidy] Add check name to YAML export 2017-01-03 14:35:47 +00:00
Refactoring Add `replace` interface with range in AtomicChange. 2017-03-30 13:07:38 +00:00
ArgumentsAdjusters.cpp Typo. 2016-11-25 20:15:57 +00:00
CMakeLists.txt Introducing clang::tooling::AtomicChange for refactoring tools. 2017-03-01 13:14:01 +00:00
CommonOptionsParser.cpp Method loadFromCommandLine should be able to report errors 2017-05-24 11:57:37 +00:00
CompilationDatabase.cpp Method loadFromCommandLine should be able to report errors 2017-05-24 11:57:37 +00:00
FileMatchTrie.cpp Tooling: Hide implementation details 2015-03-09 15:03:26 +00:00
FixIt.cpp [tooling] FixItHint Tooling refactoring 2016-05-11 14:31:39 +00:00
JSONCompilationDatabase.cpp [Tooling] Remove redundant check, NFCi 2017-05-05 14:07:23 +00:00
Refactoring.cpp Apply clang-tidy's performance-unnecessary-value-param to parts of clang. 2017-03-21 21:35:04 +00:00
RefactoringCallbacks.cpp [tooling] RefactoringCallbacks code cleanup 2017-05-12 00:16:56 +00:00
Tooling.cpp Method loadFromCommandLine should be able to report errors 2017-05-24 11:57:37 +00:00