llvm-project/clang/tools/libclang
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
..
ARCMigrate.cpp Use the simpler version of llvm::sys::fs::exists. 2014-09-11 18:10:13 +00:00
BuildSystem.cpp VirtualFileSystem: Add YAMLVFSWriter to generate VFS mapping files 2014-05-20 21:43:27 +00:00
CIndex.cpp Frontend: Don't accept null DiagnosticsEngines when building ASTUnits 2014-10-15 00:33:06 +00:00
CIndexCXX.cpp [C++11] Use 'nullptr'. Tools edition. 2014-06-08 08:38:04 +00:00
CIndexCodeCompletion.cpp Update for LLVM api change. 2014-08-27 20:03:29 +00:00
CIndexDiagnostic.cpp unique_ptrify the diagnostics in CXDiagnosticSetImpl 2014-08-29 18:43:24 +00:00
CIndexDiagnostic.h unique_ptrify the diagnostics in CXDiagnosticSetImpl 2014-08-29 18:43:24 +00:00
CIndexHigh.cpp [C++11] Use 'nullptr'. Tools edition. 2014-06-08 08:38:04 +00:00
CIndexInclusionStack.cpp Fix a typo in the function name that I just introduced (r201155) 2014-02-11 15:02:48 +00:00
CIndexUSRs.cpp libclang/libIndex: USR generation: mangle source location into USRs for macros, 2014-03-28 22:21:26 +00:00
CIndexer.cpp libclang: Remove clang::RemapFiles, it's dead code. 2013-06-13 13:57:48 +00:00
CIndexer.h Header guard canonicalization, clang part. 2014-08-13 16:25:19 +00:00
CLog.h Header guard canonicalization, clang part. 2014-08-13 16:25:19 +00:00
CMakeLists.txt libclang: Update LINK_COMPONENTS. 2014-08-02 06:58:39 +00:00
CXComment.cpp [C++11] Use 'nullptr'. Tools edition. 2014-06-08 08:38:04 +00:00
CXComment.h Header guard canonicalization, clang part. 2014-08-13 16:25:19 +00:00
CXCompilationDatabase.cpp CompilationDatabase: Sure-up ownership of compilation databases using std::unique_ptr 2014-08-08 16:06:15 +00:00
CXCursor.cpp Add libclang capabilities to retriete template arguments from specializations. 2014-10-10 20:01:05 +00:00
CXCursor.h Header guard canonicalization, clang part. 2014-08-13 16:25:19 +00:00
CXLoadedDiagnostic.cpp Re-apply "Frontend: Extract SerializedDiagnosticReader out of CXLoadedDiagnostic (NFC)" 2014-10-14 06:30:31 +00:00
CXLoadedDiagnostic.h Header guard canonicalization, clang part. 2014-08-13 16:25:19 +00:00
CXSourceLocation.cpp [C++11] Use 'nullptr'. Tools edition. 2014-06-08 08:38:04 +00:00
CXSourceLocation.h Header guard canonicalization, clang part. 2014-08-13 16:25:19 +00:00
CXStoredDiagnostic.cpp libclang: remove 'CXDiagnostic_Remark' 2014-04-26 14:43:53 +00:00
CXString.cpp [C++11] Use 'nullptr'. Tools edition. 2014-06-08 08:38:04 +00:00
CXString.h Header guard canonicalization, clang part. 2014-08-13 16:25:19 +00:00
CXTranslationUnit.h Header guard canonicalization, clang part. 2014-08-13 16:25:19 +00:00
CXType.cpp [C++11] Use 'nullptr'. Tools edition. 2014-06-08 08:38:04 +00:00
CXType.h Header guard canonicalization, clang part. 2014-08-13 16:25:19 +00:00
CursorVisitor.h Header guard canonicalization, clang part. 2014-08-13 16:25:19 +00:00
IndexBody.cpp [C++11] Support for capturing of variable length arrays in lambda expression. 2014-08-28 04:28:19 +00:00
IndexDecl.cpp [C++11] Use 'nullptr'. Tools edition. 2014-06-08 08:38:04 +00:00
IndexTypeSourceInfo.cpp -ms-extensions: Implement __super scope specifier (PR13236). 2014-09-26 00:28:20 +00:00
Index_Internal.h Header guard canonicalization, clang part. 2014-08-13 16:25:19 +00:00
Indexing.cpp Unique_ptrify PPCallbacks ownership. 2014-09-10 04:53:53 +00:00
IndexingContext.cpp [C++11] Use 'nullptr'. Tools edition. 2014-06-08 08:38:04 +00:00
IndexingContext.h Header guard canonicalization, clang part. 2014-08-13 16:25:19 +00:00
Makefile libclang/Makefile: Update LINK_COMPONENTS take #3. Sorry for the noise. 2014-08-02 07:24:04 +00:00
libclang.exports Add libclang capabilities to retriete template arguments from specializations. 2014-10-10 20:01:05 +00:00