[PATCH] D89918: Fix issue: clang-format result is not consistent if "// clang-format off" is followed by macro definition.
Owen Pan via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 28 14:39:10 PDT 2023
owenpan added a comment.
This is no longer an issue in version 17, e.g. 7a4cdbe <https://reviews.llvm.org/rG7a4cdbeafb4c2c9fae2ac69d362d22d431404bbe>:
$ clang-format
void main()
{
// clang-format off
#define Sum(x, y) ((x) + (y))
Sum(1, 2);
#undef Sum
// clang-format on
}
void main() {
// clang-format off
#define Sum(x, y) ((x) + (y))
Sum(1, 2);
#undef Sum
// clang-format on
}
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D89918/new/
https://reviews.llvm.org/D89918
More information about the cfe-commits
mailing list