This is an archive of the discontinued LLVM Phabricator instance.

[clang-format] Handle NamespaceMacro string arg for FixNamespaceComments
ClosedPublic

Authored by owenpan on Aug 9 2023, 6:11 PM.

Diff Detail

Event Timeline

owenpan created this revision.Aug 9 2023, 6:11 PM
Herald added projects: Restricted Project, Restricted Project, Restricted Project. · View Herald TranscriptAug 9 2023, 6:11 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
owenpan requested review of this revision.Aug 9 2023, 6:11 PM
owenpan updated this revision to Diff 548878.Aug 9 2023, 10:27 PM

Rebased and updated test cases.

HazardyKnusperkeks added inline comments.
clang/lib/Format/NamespaceEndCommentsFixer.cpp
177

Maybe this?

This revision is now accepted and ready to land.Aug 13 2023, 11:46 AM
owenpan added inline comments.Aug 13 2023, 1:30 PM
clang/lib/Format/NamespaceEndCommentsFixer.cpp
177

I don't think we'd need it because the + is greedy.