llvm-project/clang/lib/Frontend
Justin Bogner d512c1edf0 Frontend: Don't accept null DiagnosticsEngines when building ASTUnits
The various ways to create an ASTUnit all take a refcounted pointer to
a diagnostics engine as an argument, and if it isn't pointing at
anything they initialize it. This is a pretty confusing API, and it
really makes more sense for the caller to initialize the thing since
they control the lifetime anyway.

This fixes the one caller that didn't bother initializing the pointer
and asserts that the argument is initialized.

llvm-svn: 219752
2014-10-15 00:33:06 +00:00
..
Rewrite Unique_ptrify PPCallbacks ownership. 2014-09-10 04:53:53 +00:00
ASTConsumers.cpp Modify behavior of -ast-dump-lookups: if -ast-dump is not also provided, dump 2014-08-11 22:11:07 +00:00
ASTMerge.cpp Recommit 213307: unique_ptr-ify ownership of ASTConsumers (reverted in r213325) 2014-08-10 19:56:51 +00:00
ASTUnit.cpp Frontend: Don't accept null DiagnosticsEngines when building ASTUnits 2014-10-15 00:33:06 +00:00
CMakeLists.txt Re-apply "Frontend: Extract SerializedDiagnosticReader out of CXLoadedDiagnostic (NFC)" 2014-10-14 06:30:31 +00:00
CacheTokens.cpp unique_ptr-ify FileSystemStatCache::setNextStatCache 2014-08-11 21:29:24 +00:00
ChainedDiagnosticConsumer.cpp Remove spurious mode marker from .cpp file. 2012-10-29 06:05:01 +00:00
ChainedIncludesSource.cpp Update for LLVM api change. 2014-08-27 20:03:29 +00:00
CompilerInstance.cpp Extend -Rmodule-build to also remark when module building finishes. 2014-10-14 02:08:30 +00:00
CompilerInvocation.cpp Add experimental clang/driver flag -fsanitize-address-field-padding=N 2014-10-09 17:53:04 +00:00
CreateInvocationFromCommandLine.cpp Driver: Use pointee_iterator rather than iterating over unique_ptrs 2014-10-03 01:04:53 +00:00
DependencyFile.cpp Unique_ptrify PPCallbacks ownership. 2014-09-10 04:53:53 +00:00
DependencyGraph.cpp Unique_ptrify PPCallbacks ownership. 2014-09-10 04:53:53 +00:00
DiagnosticRenderer.cpp Simplify creation of a bunch of ArrayRefs by using None, makeArrayRef or just letting them be implicitly created. 2014-08-27 06:28:36 +00:00
FrontendAction.cpp Add support for the static analyzer to synthesize function implementations from external model files. 2014-08-27 15:14:15 +00:00
FrontendActions.cpp Improve unique_ptr-y ownership in ASTUnit::ComputePreamble 2014-08-29 06:34:53 +00:00
FrontendOptions.cpp Remove duplicated case. 2013-06-22 16:44:45 +00:00
HeaderIncludeGen.cpp Unique_ptrify PPCallbacks ownership. 2014-09-10 04:53:53 +00:00
InitHeaderSearch.cpp Add the break in the switch case (even if there is llvm_unreachable. It will silent coverity warning CID 1231654 2014-08-18 15:13:44 +00:00
InitPreprocessor.cpp Add -fseh-exceptions for MinGW-w64 2014-09-15 17:19:16 +00:00
LangStandards.cpp [C++11] Use 'nullptr'. Frontend edition. 2014-05-22 04:46:25 +00:00
LayoutOverrideSource.cpp Excise <cctype> from Clang (except clang-tblgen) in favor of CharInfo.h. 2013-02-08 22:30:41 +00:00
LogDiagnosticPrinter.cpp Fix memory leak of raw_ostreams in LogDiagnosticPrinter handling. 2014-09-15 17:30:56 +00:00
Makefile Make clang's rewrite engine a core feature 2014-07-16 16:48:33 +00:00
ModuleDependencyCollector.cpp Update for llvm api change. 2014-08-25 18:17:04 +00:00
MultiplexConsumer.cpp Recommit 213307: unique_ptr-ify ownership of ASTConsumers (reverted in r213325) 2014-08-10 19:56:51 +00:00
PrintPreprocessedOutput.cpp Avoid a couple of assertions when preprocessing with modules 2014-09-10 21:29:41 +00:00
SerializedDiagnosticPrinter.cpp Re-apply "Frontend: Extract SerializedDiagnosticReader out of CXLoadedDiagnostic (NFC)" 2014-10-14 06:30:31 +00:00
SerializedDiagnosticReader.cpp Re-apply "Frontend: Extract SerializedDiagnosticReader out of CXLoadedDiagnostic (NFC)" 2014-10-14 06:30:31 +00:00
TextDiagnostic.cpp Driver: bifurcate extended and basic MSC versioning 2014-07-16 03:13:50 +00:00
TextDiagnosticBuffer.cpp Support 'remark' in VerifyDiagnosticConsumer 2014-05-01 14:06:01 +00:00
TextDiagnosticPrinter.cpp Remove uses of the redundant ".reset(nullptr)" of unique_ptr, in favor of ".reset()" 2014-07-19 01:06:45 +00:00
VerifyDiagnosticConsumer.cpp Unique_ptrify PPCallbacks ownership. 2014-09-10 04:53:53 +00:00