[llvm-bugs] [Bug 31648] New: Inconsistent formatting for variable in parenthesis followed by multiplication
via llvm-bugs
llvm-bugs at lists.llvm.org
Sun Jan 15 08:47:44 PST 2017
https://llvm.org/bugs/show_bug.cgi?id=31648
Bug ID: 31648
Summary: Inconsistent formatting for variable in parenthesis
followed by multiplication
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: Formatter
Assignee: unassignedclangbugs at nondot.org
Reporter: Roland.Schulz at Intel.com
CC: djasper at google.com, klimek at google.com,
llvm-bugs at lists.llvm.org
Classification: Unclassified
The statement
int x=(a)*2;
gets formatted as:
int x = (a)*2;
when it should get formatted as:
int x = (a) * 2;
Given that all similar statement such as "a*2" or "2*(a)" do get formatted with
the space around the multiplication.
Present both in trunk as well as in 3.9.
--
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/20170115/02c95d54/attachment-0001.html>
More information about the llvm-bugs
mailing list