This is an archive of the discontinued LLVM Phabricator instance.

[clang-tidy] Make the named parameter check only warn on declarations if a definition is visible.
ClosedPublic

Authored by bkramer on Aug 4 2014, 1:44 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

bkramer updated this revision to Diff 12151.Aug 4 2014, 1:44 AM
bkramer retitled this revision from to [clang-tidy] Make the named parameter check only warn on declarations if a definition is visible..
bkramer updated this object.
bkramer added reviewers: alexfh, klimek.
bkramer added a subscriber: Unknown Object (MLST).
alexfh accepted this revision.Aug 4 2014, 2:37 AM
alexfh edited edge metadata.
alexfh added inline comments.
clang-tidy/google/NamedParameterCheck.cpp
81 ↗(On Diff #12151)

I'd make NewName a StringRef which stores the name or "unused", and add " /*" and "*/" when issuing a fixit.

This revision is now accepted and ready to land.Aug 4 2014, 2:37 AM
alexfh added a comment.Aug 4 2014, 2:37 AM

Looks good with my comment fixed, btw.

bkramer closed this revision.Aug 4 2014, 2:42 AM
bkramer updated this revision to Diff 12152.

Closed by commit rL214701 (authored by d0k).