[llvm-bugs] [Bug 42347] New: Weird indents when mixing #if with uniform initialization syntax
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Jun 20 13:11:36 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=42347
Bug ID: 42347
Summary: Weird indents when mixing #if with uniform
initialization syntax
Product: clang
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: Formatter
Assignee: unassignedclangbugs at nondot.org
Reporter: dcheng at google.com
CC: djasper at google.com, klimek at google.com,
llvm-bugs at lists.llvm.org
Input file:
$ cat test.cc
#include <string>
const std::string kConstant {
#if 1
1,
#else
2,
#endif
'a'
};
Formatted with -style=Chromium:
#include <string>
const std::string kConstant {
#if 1
1,
#else
2,
#endif
'a'
};
Expected:
const std::string kConstant {
#if 1
1,
#else
2,
#endif
'a'
};
--
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/20190620/d7f9778d/attachment.html>
More information about the llvm-bugs
mailing list