[LLVMbugs] [Bug 22647] New: clang-format type casts in dictionaries on wrong line
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Feb 20 09:26:38 PST 2015
http://llvm.org/bugs/show_bug.cgi?id=22647
Bug ID: 22647
Summary: clang-format type casts in dictionaries on wrong line
Product: new-bugs
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: gebeleysis at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 13917
--> http://llvm.org/bugs/attachment.cgi?id=13917&action=edit
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.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150220/79caf577/attachment.html>
More information about the llvm-bugs
mailing list