[llvm-bugs] [Bug 45648] New: clang-format breaks right shift operators
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Apr 23 11:10:53 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=45648
Bug ID: 45648
Summary: clang-format breaks right shift operators
Product: clang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: Formatter
Assignee: unassignedclangbugs at nondot.org
Reporter: rmansfield at gmail.com
CC: djasper at google.com, klimek at google.com,
llvm-bugs at lists.llvm.org, owenpiano at gmail.com
$ cat cf.c
void foo(int x) {
for (unsigned int i = 0; i < x >> 1; i++) { }
}
$ ./bin/clang-format -verbose cf.c | clang -c -xc -
Formatting cf.c
<stdin>:2:33: error: expected expression
for (unsigned int i = 0; i<x> > 1; i++) {
^
1 error generated.
$ ./bin/clang-format --version
clang-format version 11.0.0 (https://github.com/llvm/llvm-project.git
It appears this regressed in ac67414618df.
commit ac67414618df9fdc24754b05cf438f8f7568f04a
Author: Owen Pan <owenpiano at gmail.com>
Date: Fri Aug 16 21:49:17 2019 +0000
[clang-format] Fix the bug that joins template closer and > or >>
Also fixes a buggy test case.
See PR42404
Differential Revision: https://reviews.llvm.org/D66332
llvm-svn: 369157
--
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/20200423/12c38911/attachment-0001.html>
More information about the llvm-bugs
mailing list