<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - clang-format type casts in dictionaries on wrong line"
href="http://llvm.org/bugs/show_bug.cgi?id=22647">22647</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>clang-format type casts in dictionaries on wrong line
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>gebeleysis@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=13917" name="attach_13917" title="The clang-format used to reproduce this issue">attachment 13917</a> <a href="attachment.cgi?id=13917&action=edit" title="The clang-format used to reproduce this issue">[details]</a></span>
The clang-format used to reproduce this issue
When defining a dictionary with keys that have a typecast the formatting is
off, concatenating the typecast to the previous line instead of having it
prefix the key.
What I would like to see:
NSDictionary *passwordQuery = @{
(__bridge id)kSecClass: (__bridge id)kSecClassGenericPassword,
(__bridge id)kSecReturnData: (__bridge id)kCFBooleanTrue,
(__bridge id)kSecReturnAttributes: (__bridge id)kCFBooleanTrue,
};
Actual formatting:
NSDictionary *passwordQuery = @{
(__bridge id)kSecClass: (__bridge id)kSecClassGenericPassword,
(__bridge id)
kSecReturnData: (__bridge id)kCFBooleanTrue, (__bridge id)
kSecReturnAttributes: (__bridge id)kCFBooleanTrue,
};
See attached the format file used.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>