Please use GitHub pull requests for new patches. Avoid migrating existing patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
include/clang/Basic/DiagnosticSemaKinds.td
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
Show First 20 Lines • Show All 5,381 Lines • ▼ Show 20 Lines | def warn_binding_null_to_reference : Warning< | ||||
"binding dereferenced null pointer to reference has undefined behavior">, | "binding dereferenced null pointer to reference has undefined behavior">, | ||||
InGroup<NullDereference>; | InGroup<NullDereference>; | ||||
def note_indirection_through_null : Note< | def note_indirection_through_null : Note< | ||||
"consider using __builtin_trap() or qualifying pointer with 'volatile'">; | "consider using __builtin_trap() or qualifying pointer with 'volatile'">; | ||||
def warn_pointer_indirection_from_incompatible_type : Warning< | def warn_pointer_indirection_from_incompatible_type : Warning< | ||||
"dereference of type %1 that was reinterpret_cast from type %0 has undefined " | "dereference of type %1 that was reinterpret_cast from type %0 has undefined " | ||||
"behavior">, | "behavior">, | ||||
InGroup<UndefinedReinterpretCast>, DefaultIgnore; | InGroup<UndefinedReinterpretCast>, DefaultIgnore; | ||||
def warn_taking_address_of_packed_member : Warning< | |||||
"taking address of packed member %0 of class or structure %q1 may result in an unaligned pointer value">, | |||||
InGroup<DiagGroup<"address-of-packed-member">>; | |||||
def err_binding_reference_to_packed_member : Error< | |||||
"binding reference to packed member %0 of class or structure %q1">; | |||||
aaron.ballman: I don't think this note adds value. Placing parens around the expression does silence the… | |||||
Not Done ReplyInline ActionsDitto. rogfer01: Ditto. | |||||
def err_objc_object_assignment : Error< | def err_objc_object_assignment : Error< | ||||
"cannot assign to class object (%0 invalid)">; | "cannot assign to class object (%0 invalid)">; | ||||
def err_typecheck_invalid_operands : Error< | def err_typecheck_invalid_operands : Error< | ||||
"invalid operands to binary expression (%0 and %1)">; | "invalid operands to binary expression (%0 and %1)">; | ||||
def err_typecheck_sub_ptr_compatible : Error< | def err_typecheck_sub_ptr_compatible : Error< | ||||
"%diff{$ and $ are not pointers to compatible types|" | "%diff{$ and $ are not pointers to compatible types|" | ||||
"pointers to incompatible types}0,1">; | "pointers to incompatible types}0,1">; | ||||
▲ Show 20 Lines • Show All 3,135 Lines • Show Last 20 Lines |
I don't think this note adds value. Placing parens around the expression does silence the warning for false-positives, but that seems more like a documentation issue than a diagnostic.