[PATCH] D140956: [clang-format] Add an option for breaking after C++ attributes
Owen Pan via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 4 00:05:50 PST 2023
owenpan created this revision.
owenpan added reviewers: MyDeveloperDay, HazardyKnusperkeks, rymiel.
owenpan added a project: clang-format.
Herald added a project: All.
owenpan requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
This patch only handles C++11 attributes before a function declaration/definition name. It doesn't cover attributes in variable declarations, which may be supported in the future.
Fixes:
https://github.com/llvm/llvm-project/issues/54265
https://github.com/llvm/llvm-project/issues/58102
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D140956
Files:
clang/docs/ClangFormatStyleOptions.rst
clang/docs/ReleaseNotes.rst
clang/include/clang/Format/Format.h
clang/lib/Format/ContinuationIndenter.cpp
clang/lib/Format/Format.cpp
clang/lib/Format/FormatToken.h
clang/lib/Format/TokenAnnotator.cpp
clang/lib/Format/TokenAnnotator.h
clang/unittests/Format/ConfigParseTest.cpp
clang/unittests/Format/FormatTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D140956.486178.patch
Type: text/x-patch
Size: 14238 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230104/140a846b/attachment-0001.bin>
More information about the cfe-commits
mailing list