[clang] cdfb65e - [Clang][Sema] Added space after ',' in a warning

Egor Zhdan via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 22 05:28:06 PST 2022


Author: Fahad Nayyar
Date: 2022-11-22T13:26:40Z
New Revision: cdfb65e5e7182a02005b3611aa28288890b9e296

URL: https://github.com/llvm/llvm-project/commit/cdfb65e5e7182a02005b3611aa28288890b9e296
DIFF: https://github.com/llvm/llvm-project/commit/cdfb65e5e7182a02005b3611aa28288890b9e296.diff

LOG: [Clang][Sema] Added space after ',' in a warning

This change fixes a typo in a warning message.

rdar://79707705

Added: 
    

Modified: 
    clang/include/clang/Basic/DiagnosticSemaKinds.td
    clang/test/SemaObjC/atomic-property-synthesis-rules.m

Removed: 
    


################################################################################
diff  --git a/clang/include/clang/Basic/DiagnosticSemaKinds.td b/clang/include/clang/Basic/DiagnosticSemaKinds.td
index ab06c1fea215..9678fd58b997 100644
--- a/clang/include/clang/Basic/DiagnosticSemaKinds.td
+++ b/clang/include/clang/Basic/DiagnosticSemaKinds.td
@@ -1326,7 +1326,7 @@ def warn_atomic_property_rule : Warning<
   "with a user defined %select{getter|setter}2">,
   InGroup<DiagGroup<"atomic-property-with-user-defined-accessor">>;
 def note_atomic_property_fixup_suggest : Note<"setter and getter must both be "
-  "synthesized, or both be user defined,or the property must be nonatomic">;
+  "synthesized, or both be user defined, or the property must be nonatomic">;
 def err_atomic_property_nontrivial_assign_op : Error<
   "atomic property of reference type %0 cannot have non-trivial assignment"
   " operator">;

diff  --git a/clang/test/SemaObjC/atomic-property-synthesis-rules.m b/clang/test/SemaObjC/atomic-property-synthesis-rules.m
index c7fac7b61811..c7f023e474f5 100644
--- a/clang/test/SemaObjC/atomic-property-synthesis-rules.m
+++ b/clang/test/SemaObjC/atomic-property-synthesis-rules.m
@@ -108,7 +108,7 @@ @interface Foo
 // read-write - might warn
 @property int GetSet;
 @property int Get;	// expected-note {{property declared here}} \
-                        // expected-note {{setter and getter must both be synthesized}}
+                        // expected-note {{setter and getter must both be synthesized, or both be user defined, or the property must be nonatomic}}
 @property int Set;	// expected-note {{property declared here}} \
                         // expected-note {{setter and getter must both be synthesized}}
 @property int None;


        


More information about the cfe-commits mailing list