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: unassignedclangb...@nondot.org
Reporter: johannkoe...@google.com
CC: djas...@google.com, kli...@google.com,
llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs