hanchenye-llvm-project/clang/test/Misc
James Molloy 6f8780bed1 Reapply r151638 and r151641.
The bug that was caught by Apple's internal buildbots was valid and also showed another bug in my implementation.

These are now fixed, with regression tests added to catch them both (not Darwin-specific).

Original log:
====================

Revert r151638 because it causes assertion hit on PCH creation for Cocoa.h

Original log:
---------------------
Correctly track tags and enum members defined in the prototype of a function, and ensure they are properly scoped.

This fixes code such as:

enum e {x, y};
int f(enum {y, x} n) {
 return 0;
}

This finally fixes PR5464 and PR5477.
---------------------

I also reverted r151641 which was enhancement on top of r151638.

====================

llvm-svn: 151712
2012-02-29 10:24:19 +00:00
..
Inputs
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
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
diag-mapping2.c
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
emit-html.c
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
predefines.c
remap-file.c
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 Refactor SerializeDiagnosticsPrinter to using DiagnosticRenderer. This gives us comparative diagnostics 2011-12-17 05:26:11 +00:00
serialized-diags.c Refactor SerializeDiagnosticsPrinter to using DiagnosticRenderer. This gives us comparative diagnostics 2011-12-17 05:26:11 +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
verify.c
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
warning-flags.c Reapply r151638 and r151641. 2012-02-29 10:24:19 +00:00
working-directory.c