diff options
author | Chris Lattner <sabre@nondot.org> | 2009-08-16 16:57:27 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-08-16 16:57:27 +0000 |
commit | 419cfb318cd69b6c717019288d5a3822be18d8f9 (patch) | |
tree | 2936f2801c5eff9f6ce309720de126eff8453b15 /lib/CodeGen/CodeGenModule.h | |
parent | 5e94a0d82b1f49be41c35a73106b219e3f588c8c (diff) |
Improve the diagnostic emitted when an unused ObjC property getter
is found. Instead of complaining about a generic "unused expr",
emit:
t.m:7:3: warning: property access result unused - getters should not have side effects
While objc property getters *could* have side effects, according to
the language best practices, they *shouldn't*. Hopefully the
diagnostic now gets this across.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79192 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.h')
0 files changed, 0 insertions, 0 deletions