[PATCH] D33440: clang-format: properly handle Q_UNUSED and QT_REQUIRE_VERSION
Francois Ferrand via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed May 24 05:04:18 PDT 2017
Typz added a comment.
Without this patch, macros with no trailing semicolon _in the body of a function_ are not handled properly, so I get:
int foo(int a, int b) {
Q_UNUSED(a) return b;
}
class Foo {
void bar(int a, int b) { Q_UNUSED(a) Q_UNUSED(b) }
}
https://reviews.llvm.org/D33440
More information about the cfe-commits
mailing list