summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2012-06-08 22:46:07 +0000
committerJordan Rose <jordan_rose@apple.com>2012-06-08 22:46:07 +0000
commitd8d56694352c972bfb1e13bdc562b3d27b29f4ea (patch)
treeab85fc5b75273c7fde46690a4c5e61702926b540 /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
parent9b4cbec703187c0bcff2d456d8979d7b1983499b (diff)
downloadbcm5719-llvm-d8d56694352c972bfb1e13bdc562b3d27b29f4ea.tar.gz
bcm5719-llvm-d8d56694352c972bfb1e13bdc562b3d27b29f4ea.zip
Warn in ObjC++ when an 'auto' variable deduces type 'id'.
This could happen for cases like this: - (NSArray *)getAllNames:(NSArray *)images { NSMutableArray *results = [NSMutableArray array]; for (auto img in images) { [results addObject:img.name]; } return results; } Here the property access will fail because 'img' has type 'id', rather than, say, NSImage. This warning will not fire in templated code, since the 'id' could have come from a template parameter. llvm-svn: 158239
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud