ObjC Class Property: diagnostics when accessing a class property using instance.
When a class property is accessed with an object instance, before this commit, we try to apply a typo correction of the same property: property 'c' not found on object of type 'A *'; did you mean 'c'? With this commit, we correctly emit a diagnostics: property 'c' is a class property; did you mean to access it with class 'A'? rdar://26866973 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@274076 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/Basic/DiagnosticSemaKinds.td 2 additions, 0 deletionsinclude/clang/Basic/DiagnosticSemaKinds.td
- lib/Sema/SemaExprObjC.cpp 24 additions, 7 deletionslib/Sema/SemaExprObjC.cpp
- test/FixIt/fixit-objc.m 8 additions, 0 deletionstest/FixIt/fixit-objc.m
- test/SemaObjC/objc-class-property.m 1 addition, 0 deletionstest/SemaObjC/objc-class-property.m
Loading
Please register or sign in to comment