llvm-project/clang/test/Misc
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
..
Inputs Change the include stack of "instantiated from" notes to fall under the control of f/fno-diagnostics-show-note-include-stack flags. This should help with reducing diagnostic spew from macros instantiations. 2011-05-26 20:49:16 +00:00
ast-dump-templates.cpp Fix a test case that was intermittently failing. The issue was that instantiations are not stored in an order preserving structure, so the print order may be impacted. Modified test case to do two FileCheck passes to ensure that both instantiations are in the same place. 2011-07-28 20:30:10 +00:00
caret-diags-macros.c Switch to a more natural formatting of the macro name printing. 2011-10-24 18:51:08 +00:00
caret-diags-scratch-buffer.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
diag-aka-types.cpp Modify how the -verify flag works. Currently, the verification string and 2011-12-15 00:38:15 +00:00
diag-format.c rename -ccc-host-triple into -target 2012-01-20 22:01:23 +00:00
diag-line-wrapping.cpp Add back support for a manually formatted section of the diagnostic 2011-09-26 16:43:25 +00:00
diag-macro-backtrace.c Fix -fmacro-backtrace-limit=0 to show the entire macro backtrace. 2012-01-25 06:07:15 +00:00
diag-mapping.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
diag-mapping2.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
diag-trailing-null-bytes.cpp Revert r154981, because it caused PR12674. 2012-04-26 21:39:46 +00:00
diag-verify.cpp Modify how the -verify flag works. Currently, the verification string and 2011-12-15 00:38:15 +00:00
emit-html-insert.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
emit-html.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
error-limit-multiple-notes.cpp Fix -ferror-limit= to properly emit notes following the last error 2011-08-17 19:13:00 +00:00
error-limit.c Fix -ferror-limit= to properly emit notes following the last error 2011-08-17 19:13:00 +00:00
include-stack-for-note-flag.cpp Switch to a more natural formatting of the macro name printing. 2011-10-24 18:51:08 +00:00
integer-literal-printing.cpp Remove test with int128 printing since it breaks on some platforms. 2011-11-07 19:30:35 +00:00
macro-backtrace.c Switch to a more natural formatting of the macro name printing. 2011-10-24 18:51:08 +00:00
message-length.c Nicer display of unprintable source, and fix caret display for non-ascii text 2012-04-18 02:44:46 +00:00
predefines.c tests: Use -ffreestanding when including stdint.h, to avoid platform dependencies. 2010-09-07 22:54:28 +00:00
remap-file.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
serialized-diags-frontend.c Fix an assertion hit when the serialized diagnostics writer receive a diagnostic 2012-05-10 05:03:45 +00:00
serialized-diags-no-category.c Per discussion on cfe-dev, remove '#error' and '#warning' from diagnostic text. 2012-02-02 00:16:13 +00:00
serialized-diags-no-issue.c [serialized diagnostics]: add test cases for serialized diagnostics, including a test case for no issues, multiple issues, and 2011-11-11 00:46:43 +00:00
serialized-diags-single-issue.c Implement clang_getDiagnosticCategoryText() to provide a way for a client of libclang to accurately 2012-04-12 00:03:31 +00:00
serialized-diags.c Implement support for 18 of the GNU-compatible __atomic builtins. 2012-04-12 05:08:17 +00:00
serialized-diags.h Refactor SerializeDiagnosticsPrinter to using DiagnosticRenderer. This gives us comparative diagnostics 2011-12-17 05:26:11 +00:00
show-diag-options.c Add a test for the display of diagnostic options and categories. This 2011-09-26 10:42:40 +00:00
tabstop.c When diagnosing suspicious precedence or assignments, move the fix-it 2010-04-14 16:09:52 +00:00
unprintable.c Nicer display of unprintable source, and fix caret display for non-ascii text 2012-04-18 02:44:46 +00:00
verify.c add regex support for -verify mode. You can now do things like 2010-04-28 20:02:30 +00:00
warn-in-system-header.c Per discussion on cfe-dev, remove '#error' and '#warning' from diagnostic text. 2012-02-02 00:16:13 +00:00
warn-in-system-header.h Don't hide #warnings in a system header, same as gcc. Fixes rdar://8495837. 2011-04-21 23:08:23 +00:00
warning-flags.c Put the availability warnings in a group. 2012-05-06 16:49:20 +00:00
working-directory.c Implement -working-directory. 2010-11-03 22:45:23 +00:00
wrong-encoding.c Nicer display of unprintable source, and fix caret display for non-ascii text 2012-04-18 02:44:46 +00:00