This patch enables namespace end comments under a new flag FixNamespaceComments,
which is enabled for the LLVM and Google styles.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
include/clang/Format/Format.h | ||
---|---|---|
354 ↗ | (On Diff #89876) | To be consistent with the clang-tidy check, just call this "FixNamespaceComments". After a change like this, you need to call docs/tools/dump_format_style.py in order to update the documentation. |
lib/Format/Format.cpp | ||
1837 ↗ | (On Diff #89876) | So much code copied and pasted. Could you pull out a method or lambda and call this with either the JavaScriptRequoter or the NamespaceEndCommentsFixer? Also, at some point, we'll probably want to call several of these fixers in series. But we can leave that problem for another day. |