[all-commits] [llvm/llvm-project] bcc1de: [clang-format] Add StatementAttributeLikeMacros op...
Björn Schäpers via All-commits
all-commits at lists.llvm.org
Sun Jan 17 22:06:00 PST 2021
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: bcc1dee60019f3a488a04dc7f701f7a692040fed
https://github.com/llvm/llvm-project/commit/bcc1dee60019f3a488a04dc7f701f7a692040fed
Author: Björn Schäpers <bjoern at hazardy.de>
Date: 2021-01-18 (Mon, 18 Jan 2021)
Changed paths:
M clang/docs/ClangFormatStyleOptions.rst
M clang/docs/ReleaseNotes.rst
M clang/include/clang/Format/Format.h
M clang/lib/Format/Format.cpp
M clang/lib/Format/FormatToken.h
M clang/lib/Format/FormatTokenLexer.cpp
M clang/lib/Format/TokenAnnotator.cpp
M clang/lib/Format/WhitespaceManager.cpp
M clang/unittests/Format/FormatTest.cpp
Log Message:
-----------
[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
More information about the All-commits
mailing list