[clang-format] Add StatementAttributeLikeMacros option
authorBjörn Schäpers <bjoern@hazardy.de>
Wed, 23 Dec 2020 21:03:39 +0000 (22:03 +0100)
committerBjörn Schäpers <bjoern@hazardy.de>
Mon, 18 Jan 2021 05:54:31 +0000 (06:54 +0100)
commitbcc1dee60019f3a488a04dc7f701f7a692040fed
tree9488166990e52236eabbfc1e0050954c0d4d96ec
parent26a396c4ef481cb159bba631982841736a125a9c
[clang-format] Add StatementAttributeLikeMacros option

This allows to ignore for example Qts emit when
AlignConsecutiveDeclarations is set, otherwise it is parsed as a type
and it results in some misformating:

unsigned char MyChar = 'x';
emit          signal(MyChar);

Differential Revision: https://reviews.llvm.org/D93776
clang/docs/ClangFormatStyleOptions.rst
clang/docs/ReleaseNotes.rst
clang/include/clang/Format/Format.h
clang/lib/Format/Format.cpp
clang/lib/Format/FormatToken.h
clang/lib/Format/FormatTokenLexer.cpp
clang/lib/Format/TokenAnnotator.cpp
clang/lib/Format/WhitespaceManager.cpp
clang/unittests/Format/FormatTest.cpp