Previously, a strange trailing comment was produced:
namespace out { namespace { }} // namespace out::
(mind the "out::").
Paths
| Differential D117289
[clang-format] Fix namespace end comments fixer with anonymous namespaces. ClosedPublic Authored by curdeius on Jan 14 2022, 12:35 AM.
Details Summary Previously, a strange trailing comment was produced: namespace out { namespace { }} // namespace out:: (mind the "out::").
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Jan 14 2022, 12:37 AM This revision was landed with ongoing or failed builds.Jan 14 2022, 2:41 AM Closed by commit rG717cd16e85fa: [clang-format] Fix namespace end comments fixer with anonymous namespaces. (authored by curdeius). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 399940 clang/lib/Format/NamespaceEndCommentsFixer.cpp
clang/unittests/Format/NamespaceEndCommentsFixerTest.cpp
|