commit | c2e6d2a4a7fe9dfa7d52a38c6048b7b18e6b591a | [log] [tgz] |
---|---|---|
author | Nico Weber <nicolasweber@gmx.de> | Mon Feb 11 15:32:15 2013 +0000 |
committer | Nico Weber <nicolasweber@gmx.de> | Mon Feb 11 15:32:15 2013 +0000 |
tree | 079b1d7737ae0fed7eb6751a3c26b61076d18e9c | |
parent | 3f4535e44965f46cf603146141d2d27a1cef1f7f [diff] |
Formatter: Detect ObjC message expressions after 'in' in loop Before: for (id foo in[self getStuffFor : bla]) { } Now: for (id foo in [self getStuffFor:bla]) { } "in" is treated as loop keyword if the line starts with "for", and as a regular identifier else. To check for "in", its IdentifierInfo is handed through a few layers. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174889 91177308-0d34-0410-b5e6-96231b3b80d8