This patch enables namespace end comments under a new flag FixNamespaceComments,
which is enabled for the LLVM and Google styles.
Details
Diff Detail
- Build Status
Buildable 4403 Build 4403: arc lint + arc unit
Event Timeline
include/clang/Format/Format.h | ||
---|---|---|
354 | 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 | 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. |
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.