This is an archive of the discontinued LLVM Phabricator instance.

[clang-tidy] Adjust location of namespace comment diagnostic
ClosedPublic

Authored by ilya-biryukov on Jul 17 2019, 6:02 AM.

Details

Summary

If there is no comment, place it at the closing brace of a namespace
definition. Previously it was placed at the next character after the
closing brace.

The new position produces a better location for highlighting in clangd
and does not seem to make matters worse for clang-tidy.

Diff Detail

Repository
rL LLVM

Event Timeline

ilya-biryukov created this revision.Jul 17 2019, 6:02 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 17 2019, 6:02 AM
hokein accepted this revision.Jul 17 2019, 6:15 AM
This revision is now accepted and ready to land.Jul 17 2019, 6:15 AM
alexfh accepted this revision.Jul 17 2019, 6:52 AM

LG. Thanks!

This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptJul 17 2019, 8:21 AM