llvm-project/clang/tools/libclang
Argyrios Kyrtzidis b16ff5d1ce Fix an assertion hit when the serialized diagnostics writer receive a diagnostic
from the frontend when the location is invalid and the SourceManager null.

Instead of keeping the SourceManager object in DiagnosticRenderer, propagate it
to the calls accordingly (as reference when it is expected to not be null, or pointer
when it may be null).
This effectively makes DiagnosticRenderer not tied to a specific SourceManager,
removing a hack from TextDiagnosticPrinter.

rdar://11386874

llvm-svn: 156536
2012-05-10 05:03:45 +00:00
..
ARCMigrate.cpp Add new code migrator support for migrating existing Objective-C code to use 2012-03-06 20:06:33 +00:00
CIndex.cpp Introduce a new libclang API to determine the platform availability of 2012-05-08 00:14:45 +00:00
CIndexCXX.cpp Remove unreachable code in Clang. (replace with llvm_unreachable where appropriate or when GCC requires it) 2012-01-17 06:56:22 +00:00
CIndexCodeCompletion.cpp [code-complete] Introduce CodeCompletionTUInfo which will be used for caching 2012-04-10 17:23:48 +00:00
CIndexDiagnostic.cpp Fix an assertion hit when the serialized diagnostics writer receive a diagnostic 2012-05-10 05:03:45 +00:00
CIndexDiagnostic.h Implement clang_getDiagnosticCategoryText() to provide a way for a client of libclang to accurately 2012-04-12 00:03:31 +00:00
CIndexHigh.cpp [libclang] Add defensive checks to make sure we don't try to dereference 2011-12-10 02:36:25 +00:00
CIndexInclusionStack.cpp remove unneeded llvm:: namespace qualifiers on some core types now that LLVM.h imports 2011-07-23 10:55:15 +00:00
CIndexUSRs.cpp Unify naming of LangOptions variable/get function across the Clang stack (Lex to AST). 2012-03-11 07:00:24 +00:00
CIndexer.cpp remove unneeded config.h includes 2011-12-22 22:49:47 +00:00
CIndexer.h [libclang] If displayDiagnostics is set (when calling clang_createIndex), make sure to 2012-04-11 02:11:16 +00:00
CMakeLists.txt [libclang] Don't set dylib load address to 0xe000000. 2012-04-20 22:07:11 +00:00
CXCursor.cpp [AST/libclang] Speed up clang_getOverriddenCursors() considerably by reserving a bit 2012-05-09 16:12:57 +00:00
CXCursor.h Reduce malloc() traffic of clang_getOverridenCursors() by using a pool of SmallVector<CXCursor> objects 2012-04-30 19:06:49 +00:00
CXLoadedDiagnostic.cpp Implement clang_getDiagnosticCategoryText() to provide a way for a client of libclang to accurately 2012-04-12 00:03:31 +00:00
CXLoadedDiagnostic.h Implement clang_getDiagnosticCategoryText() to provide a way for a client of libclang to accurately 2012-04-12 00:03:31 +00:00
CXSourceLocation.cpp serialized diagnostics: implement full deserialization of clang diagnostics via the libclang API. 2011-11-10 08:43:12 +00:00
CXSourceLocation.h Unify naming of LangOptions variable/get function across the Clang stack (Lex to AST). 2012-03-11 07:00:24 +00:00
CXStoredDiagnostic.cpp Implement clang_getDiagnosticCategoryText() to provide a way for a client of libclang to accurately 2012-04-12 00:03:31 +00:00
CXString.cpp [libclang] Workaround potential race condition with code completion AllocatedResults being freed after a CXTranslationUnit. 2011-08-17 22:19:53 +00:00
CXString.h drop more llvm:: prefixes on SmallString<> 2012-02-13 12:32:26 +00:00
CXTranslationUnit.h Reduce malloc() traffic of clang_getOverridenCursors() by using a pool of SmallVector<CXCursor> objects 2012-04-30 19:06:49 +00:00
CXType.cpp [libclang] Map 'id'/'Class'/'SEL' to the corresponding CXType kinds. 2012-05-08 01:22:12 +00:00
CXType.h Change CXTranslationUnit to not directly cast to an ASTUnit*, 2010-11-16 08:15:36 +00:00
CursorVisitor.h Implement indexing support for lambdas in libclang (both kinds), as 2012-02-15 00:54:55 +00:00
IndexBody.cpp [libclang] Put the RecursiveASTVisitor in libclang in a cxindex namespace. 2012-05-07 22:22:58 +00:00
IndexDecl.cpp [libclang] Make sure we don't crash when trying to index code that 2012-03-23 23:24:18 +00:00
IndexTypeSourceInfo.cpp [libclang] Put the RecursiveASTVisitor in libclang in a cxindex namespace. 2012-05-07 22:22:58 +00:00
Index_Internal.h [libclang] Move CursorVisitor to its own header. 2011-11-03 19:02:34 +00:00
Indexing.cpp [libclang] If displayDiagnostics is set (when calling clang_createIndex), make sure to 2012-04-11 02:11:16 +00:00
IndexingContext.cpp [libclang] Fix use-after-free bug when handling attributes indexing info. 2012-03-31 01:14:06 +00:00
IndexingContext.h [libclang] Fix use-after-free bug when handling attributes indexing info. 2012-03-31 01:14:06 +00:00
Makefile don't use soname on OpenBSD, it doesn't support it. Patch by 2012-04-25 06:09:30 +00:00
RecursiveASTVisitor.h [libclang] Actually commit the changes to make libclang's RecursiveASTVisitor 2012-05-07 23:23:03 +00:00
libclang.exports Introduce a new libclang API to determine the platform availability of 2012-05-08 00:14:45 +00:00