[llvm-bugs] [Bug 35930] New: [regression] comments near #define indented incorrectly
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Jan 12 09:01:30 PST 2018
https://bugs.llvm.org/show_bug.cgi?id=35930
Bug ID: 35930
Summary: [regression] comments near #define indented
incorrectly
Product: clang
Version: 5.0
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Formatter
Assignee: unassignedclangbugs at nondot.org
Reporter: johannkoenig at google.com
CC: djasper at google.com, klimek at google.com,
llvm-bugs at lists.llvm.org
clang-format 4.0.1 generates
#include <file.h>
int test(int a) { return a + 0; }
// comment about file
#define THIS that
5.0.0 generates
#include <file.h>
int test(int a) { return a + 0; }
// comment about file
#define THIS that
removing the newline between the comment and the define allow the correct
indentation to be set (but does not set fix it automatically, which v4.0.1
does)
#include <file.h>
int test(int a) { return a + 0; }
// comment about file
#define THIS that
--
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/20180112/ca817ca6/attachment.html>
More information about the llvm-bugs
mailing list