llvm-project/clang/test/Misc
Chris Lattner ac57f21cd1 Fix PR9279 - Macro expansion stack trace seriously broken with function-style macros, by not recursively printing notes for other 'instantiated from' notes.
This is a one line fix here:
+      // Don't print recursive instantiation notes from an instantiation note.
+      Loc = SM.getSpellingLoc(Loc);

While here, fix the testcase to be more precise (it got filecheck'ized
brutally), and fix EmitCaretDiagnostic to be private and to not pass down
the unused 'Level' argument.

llvm-svn: 133993
2011-06-28 05:11:33 +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
caret-diags-macros.c Fix PR9279 - Macro expansion stack trace seriously broken with function-style macros, by not recursively printing notes for other 'instantiated from' notes. 2011-06-28 05:11:33 +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 Implement the C++0x deduced 'auto' feature. 2011-02-20 03:19:35 +00:00
diag-format.c Introduce the -fdiagnostics-format=xxx option to control how Clang 2011-05-21 17:07:29 +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
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
include-stack-for-note-flag.cpp 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
macro-backtrace-limit.c tests: Use %clangxx when using driver for C++, in case C++ support is disabled. 2010-06-29 16:52:24 +00:00
message-length.c Fix a bug in caret-line-pruning logic that only happens when we have a 2010-04-16 00:23:51 +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
tabstop.c When diagnosing suspicious precedence or assignments, move the fix-it 2010-04-14 16:09:52 +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 Don't hide #warnings in a system header, same as gcc. Fixes rdar://8495837. 2011-04-21 23:08:23 +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
working-directory.c Implement -working-directory. 2010-11-03 22:45:23 +00:00