llvm-project/clang/test/Headers
Ted Kremenek b79ee57080 Implemented delayed processing of 'unavailable' checking, just like with 'deprecated'.
Fixes <rdar://problem/15584219> and <rdar://problem/12241361>.

This change looks large, but all it does is reuse and consolidate
the delayed diagnostic logic for deprecation warnings with unavailability
warnings.  By doing so, it showed various inconsistencies between the
diagnostics, which were close, but not consistent.  It also revealed
some missing "note:"'s in the deprecated diagnostics that were showing
up in the unavailable diagnostics, etc.

This change also changes the wording of the core deprecation diagnostics.
Instead of saying "function has been explicitly marked deprecated"
we now saw "'X' has been been explicitly marked deprecated".  It
turns out providing a bit more context is useful, and often we
got the actual term wrong or it was not very precise
 (e.g., "function" instead of "destructor").  By just saying the name
of the thing that is deprecated/deleted/unavailable we define
this issue away.  This diagnostic can likely be further wordsmithed
to be shorter.

llvm-svn: 197627
2013-12-18 23:30:06 +00:00
..
Inputs/include Add missing definitions to unwind.h. 2013-08-28 23:16:49 +00:00
altivec-header.c clang/test: REQUIRES: s/ppc{32|64}-registered-target/powerpc-registered-target/ 2013-12-04 03:41:15 +00:00
arm-neon-header.c
c11.c Switch tests in test/Headers to use %clang_cc1 rather than %clang. There 2013-09-20 21:12:25 +00:00
c89.c Switch tests in test/Headers to use %clang_cc1 rather than %clang. There 2013-09-20 21:12:25 +00:00
cxx11.cpp Switch tests in test/Headers to use %clang_cc1 rather than %clang. There 2013-09-20 21:12:25 +00:00
int64-type.c Prior to adding the new "expected-no-diagnostics" directive to VerifyDiagnosticConsumer, make the necessary adjustment to 580 test-cases which will henceforth require this new directive. 2012-10-19 12:44:48 +00:00
limits.cpp Define [U]LLONG_{MIN,MAX} for C++11, add tests. 2013-10-27 19:00:49 +00:00
ms-intrin.cpp Implemented delayed processing of 'unavailable' checking, just like with 'deprecated'. 2013-12-18 23:30:06 +00:00
ms-null-ms-header-vs-stddef.cpp Switch tests in test/Headers to use %clang_cc1 rather than %clang. There 2013-09-20 21:12:25 +00:00
ms-wchar.c Switch tests in test/Headers to use %clang_cc1 rather than %clang. There 2013-09-20 21:12:25 +00:00
stdbool.cpp Reinstate r173952, this time limiting it to exactly the form 2013-01-30 23:10:17 +00:00
tgmath.c Switch tests in test/Headers to use %clang_cc1 rather than %clang. There 2013-09-20 21:12:25 +00:00
typedef_guards.c Prior to adding the new "expected-no-diagnostics" directive to VerifyDiagnosticConsumer, make the necessary adjustment to 580 test-cases which will henceforth require this new directive. 2012-10-19 12:44:48 +00:00
unwind.c Use %clang_cc1 so that the test works even if the target isn't available. 2012-09-27 01:40:12 +00:00
wchar_limits.cpp Prior to adding the new "expected-no-diagnostics" directive to VerifyDiagnosticConsumer, make the necessary adjustment to 580 test-cases which will henceforth require this new directive. 2012-10-19 12:44:48 +00:00
wmmintrin.c Prior to adding the new "expected-no-diagnostics" directive to VerifyDiagnosticConsumer, make the necessary adjustment to 580 test-cases which will henceforth require this new directive. 2012-10-19 12:44:48 +00:00
x86-intrinsics-headers.c Switch tests in test/Headers to use %clang_cc1 rather than %clang. There 2013-09-20 21:12:25 +00:00
x86intrin.c xopintrin.h: Add wrappers for all flavors of _mm_com. 2013-05-09 15:07:46 +00:00