This is an archive of the discontinued LLVM Phabricator instance.

[clang-tidy] Another batch of checks to rename from misc- to bugprone-.
ClosedPublic

Authored by alexfh on Feb 28 2018, 5:27 AM.

Details

Summary

clang-tidy/rename_check.py {misc,bugprone}-suspicious-semicolon
clang-tidy/rename_check.py {misc,bugprone}-suspicious-string-compare
clang-tidy/rename_check.py {misc,bugprone}-swapped-arguments
clang-tidy/rename_check.py {misc,bugprone}-undelegated-constructor --check_class_name UndelegatedConstructor

Diff Detail

Repository
rL LLVM

Event Timeline

alexfh created this revision.Feb 28 2018, 5:27 AM
aaron.ballman accepted this revision.Feb 28 2018, 5:37 AM

LGTM with a couple of drive-by nits that could be fixed if you wanted to.

docs/clang-tidy/checks/bugprone-swapped-arguments.rst
6 ↗(On Diff #136284)

Can get rid of the extra newline while you're at it.

docs/clang-tidy/checks/bugprone-undelegated-constructor.rst
6 ↗(On Diff #136284)

Same here, if you'd like.

This revision is now accepted and ready to land.Feb 28 2018, 5:37 AM
alexfh marked 2 inline comments as done.Feb 28 2018, 6:39 AM
Eugene.Zelenko added inline comments.
docs/ReleaseNotes.rst
60 ↗(On Diff #136284)

Please sort checks alphabetically. Will be also good idea to move renamed checks after new checks/modules.

alexfh marked an inline comment as done.Feb 28 2018, 3:48 PM
alexfh added inline comments.
docs/ReleaseNotes.rst
60 ↗(On Diff #136284)

I've sorted the entries manually. I hope I can change the rename_check.py script to insert new notes into the right place in the list.

This revision was automatically updated to reflect the committed changes.
This revision was automatically updated to reflect the committed changes.
alexfh marked an inline comment as done.
clang-tools-extra/trunk/test/clang-tidy/misc-swapped-arguments.cpp