llvm-project/clang/test/SemaObjCXX
Aaron Ballman 19e984ef8f Properly print unnamed TagDecl objects in diagnostics
The diagnostics engine is very smart about being passed a NamedDecl to
print as part of a diagnostic; it gets the "right" form of the name,
quotes it properly, etc. However, the result of using an unnamed tag
declaration was to print '' instead of anything useful.

This patch causes us to print the same information we'd have gotten if
we had printed the type of the declaration rather than the name of it,
as that's the most relevant information we can display.

Differential Revision: https://reviews.llvm.org/D134813
2022-10-14 08:18:28 -04:00
..
Inputs
NSString-type.mm
abstract-class-type-ivar.mm
arc-0x.mm Properly print unnamed TagDecl objects in diagnostics 2022-10-14 08:18:28 -04:00
arc-bool-conversion.mm
arc-bridged-cast.mm
arc-libstdcxx.mm
arc-memfunc.mm
arc-nsconsumed-errors.mm
arc-objc-lifetime.mm
arc-overloading.mm CWG2352: Allow qualification conversions during reference binding. 2020-01-09 18:24:06 -08:00
arc-ppe.mm
arc-ptr-comparison.mm [SemaObjC] Fix composite pointer type calculation for `void*` and pointer to lifetime qualified ObjC pointer type 2020-10-15 15:21:01 -04:00
arc-system-header.mm
arc-templates.mm [clang] Implement ElaboratedType sugaring for types written bare 2022-07-27 11:10:54 +02:00
arc-type-conversion.mm [SemaObjC] Fix a crash on an invalid ternary with ARC pointers 2020-10-13 21:20:20 -04:00
arc-type-traits.mm [Sema] Add deprecation warnings for some compiler provided __has_* type traits 2022-07-12 19:24:17 +03:00
arc-unavailable-for-weakref.mm
arc-unbridged-cast.mm
argument-dependent-lookup.mm
attr-swift_name-cxx.mm [clang] add a `swift_async_name` attribute 2020-12-04 15:55:29 -08:00
attr-trivial-abi.mm Clang crashed while checking for deletion of copy and move ctors 2020-07-07 14:40:37 -04:00
base-type-as-written.mm
block-capture.mm [clang] C++98 implicit moves are back with a vengeance 2021-07-13 19:16:49 +02:00
block-cleanup.mm
block-for-lambda-conversion.mm
block-variable-move.mm
blocks.mm [clang] Implement ElaboratedType sugaring for types written bare 2022-07-27 11:10:54 +02:00
boxing-illegal-types.mm
bridge-cast-redecl.mm [SemaObjC] Fix a -Wbridge-cast false-positive 2021-04-05 11:41:40 -04:00
builtin-objcsuper.mm [Sema] Handle objc_super special lookup when checking builtin compatibility 2020-09-18 20:51:55 +03:00
capturing-flexible-array-in-block.mm [Sema] Add some basic lambda capture fix-its 2021-03-11 13:46:25 +00:00
category-lookup.mm
class-method-self.mm [ObjC] Diagnose implicit type coercion from ObjC 'Class' to object 2019-10-17 15:27:04 +00:00
class-templ-error-null-init.mm
composite-objc-pointertype.mm Clean up and slightly generalize implementation of composite pointer 2020-01-10 16:12:00 -08:00
comptypes-1.mm [Sema][C++] Propagate conversion kind to specialize the diagnostics 2020-02-25 16:05:37 +00:00
comptypes-7.mm [Sema][C++] Propagate conversion kind to specialize the diagnostics 2020-02-25 16:05:37 +00:00
conditional-expr.mm
const-cast.mm
contextual-convert-to-id.mm
conversion-ranking.mm
conversion-to-objc-pointer-2.mm
conversion-to-objc-pointer.mm
crash.mm [Sema][ObjC] Fix assertion failure in getCommonNonSugarTypeNode 2022-10-05 10:38:25 -07:00
cstyle-block-pointer-cast.mm
cstyle-cast.mm
cxx1y-lambda.mm
cxxoperator-selector.mm
debugger-cast-result-to-id.mm
debugger-support.mm
decltype.mm
deduction.mm
delay-parsing-cfunctions.mm
delay-parsing-cplusfuncs.mm
delay-parsing-func-tryblock.mm
dllexport.mm
dllimport.mm
exceptions-fragile.mm
exceptions.mm
expr-objcxx.mm
flexible-array.mm
foreach-block.mm
foreach.mm
format-strings.mm
fragile-abi-object-assign.m
function-pointer-void-star.mm
gc-attributes.mm Recommit r359859 "[Attribute/Diagnostics] Print macro if definition is an attribute declaration" 2019-05-07 03:20:17 +00:00
goto.mm
instancetype.mm [NFC][Clang][test] Inclusive language: Remove and rephrase uses of sanity test/check in clang/test 2021-11-24 14:03:49 -05:00
instantiate-expr.mm [Sema][C++] Propagate conversion kind to specialize the diagnostics 2020-02-25 16:05:37 +00:00
instantiate-message.mm
instantiate-method-return.mm
instantiate-property-access.mm Revert "[Sema] check PseudoObject when rebuilding CXXOperatorCallExpr in template instantiation" 2021-12-01 11:18:30 +01:00
instantiate-stmt.mm [Sema][C++] Propagate conversion kind to specialize the diagnostics 2020-02-25 16:05:37 +00:00
interface-return-type.mm
is-base-of.mm
ivar-construct.mm
ivar-lookup.mm
ivar-reference-type.mm
ivar-struct.mm
linkage-spec.mm
lit.local.cfg
literals.mm
message.mm Recommit: Compress formatting of array type names (int [4] -> int[4]) 2021-10-21 11:34:43 -07:00
microsoft-abi-byval.mm
missing-lhs-gun-extension.mm
namespace-lookup.mm
no-crash-thread-safety-analysis.mm
noescape.mm [Sema] Don't set BlockDecl's DoesNotEscape bit if the parameter type of 2021-04-29 16:19:48 -07:00
null_objc_pointer.mm
nullability-completeness-cferror.mm
nullability-consistency-arrays.mm
nullability-consistency.mm
nullability-pragmas.mm [Sema][C++] Propagate conversion kind to specialize the diagnostics 2020-02-25 16:05:37 +00:00
nullptr.mm
objc-boxed-expressions-nsvalue.mm
objc-container-subscripting.mm [Sema][C++] Propagate conversion kind to specialize the diagnostics 2020-02-25 16:05:37 +00:00
objc-decls-inside-namespace.mm
objc-extern-c.mm
objc-pointer-conv.mm
objc-weak-type-traits.mm [Sema] Add deprecation warnings for some compiler provided __has_* type traits 2022-07-12 19:24:17 +03:00
objc-weak.mm
objc2-merge-gc-attribue-decl.mm
objcbridge-attribute-arc.mm
objcbridge-attribute.mm
objcbridge-related-attribute.mm
objcbridge-static-cast.mm
objcxx_openmp.mm [OPENMP]Fix PR47790: segfault in frontend while parsing Objective-C with OpenMP. 2020-11-12 13:26:11 -08:00
old-style-cast.mm
overload-gc.mm
overload.mm [Sema] List conversion validate character array. 2020-10-03 14:33:28 +02:00
parameterized_classes.mm
parameterized_classes_arc.mm [AST] dont invaliate VarDecl when the initializer contains errors. 2020-04-21 10:53:35 +02:00
parameterized_classes_subst.mm Form invalid template-id annotations when parsing a construct that is 2020-03-27 20:27:42 -07:00
parameters.mm
pointer-to-objc-pointer-conv.mm
pr32725.mm
propert-dot-error.mm
properties.mm
property-invalid-type.mm [SemaObjC] Fix a crash on invalid when 'auto' is used in a @property 2020-06-24 12:11:39 -04:00
property-reference.mm
property-synthesis-error.mm
property-type-mismatch.mm
protocol-lookup.mm
pseudo-destructor.mm
references.mm
reinterpret-cast-objc-pointertype.mm
related-result-type-inference.mm
reserved-keyword-methods.mm
sel-address.mm
standard-conversion-to-bool.mm
static-cast.mm
synchronized.mm
thread-safety-analysis.h
type-traits-is-pointer.mm Fix __is_pointer builtin type trait to work with Objective-C pointer types. 2020-04-08 10:02:53 -07:00
typeloc-data-alignment.mm
typo-correction.mm
unknown-anytype.mm
unsupported-signature-std-addressof-id.mm [objcxx] Fix `std::addressof` for `id`. 2022-07-08 11:29:30 -07:00
vararg-non-pod.mm
vla.mm
void_to_obj.mm
warn-called-once.mm [-Wcalled-once] Do not run analysis on Obj-C++ 2021-04-22 15:20:52 +03:00
warn-implicit-self-in-block.mm [Sema][ObjC] Don't warn about implicitly-retained self in an unevaluated 2022-08-22 12:16:37 -07:00
warn-missing-super.mm
warn-objc-literal-conversion.mm
warn-strict-selector-match.mm
warn-thread-safety-analysis.mm