This is an archive of the discontinued LLVM Phabricator instance.

[clang-tidy] Fix more enum declaration cases in misc-unused-using-decls check.
ClosedPublic

Authored by hokein on Jun 29 2016, 2:41 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

hokein updated this revision to Diff 62190.Jun 29 2016, 2:41 AM
hokein retitled this revision from to [clang-tidy] Fix more enum declaration cases in misc-unused-using-decls check..
hokein updated this object.
hokein added a reviewer: alexfh.
hokein added subscribers: cfe-commits, Eugene.Zelenko.
aaron.ballman added inline comments.
clang-tidy/misc/UnusedUsingDeclsCheck.cpp
22 ↗(On Diff #62190)

Can you fix this fixme as a prerequisite to this patch? It should be pretty trivial, and I'd hate for it to get forgotten post-commit.

test/clang-tidy/misc-unused-using-decls.cpp
152 ↗(On Diff #62190)

We're now lacking a test that says "Green is unused" like we had before. Can you add another test case to bring back the similar diagnostic?

hokein updated this revision to Diff 62278.Jun 29 2016, 1:25 PM

Address review comments.

hokein marked an inline comment as done.Jun 29 2016, 1:26 PM
hokein added inline comments.
clang-tidy/misc/UnusedUsingDeclsCheck.cpp
22 ↗(On Diff #62278)

Done in D21860.

hokein updated this revision to Diff 62354.Jun 30 2016, 5:40 AM

enumType is already in ASTMatcher now.

hokein marked an inline comment as done.Jun 30 2016, 5:40 AM
hokein added a comment.Jul 4 2016, 3:20 AM

Friendly ping ;)

alexfh accepted this revision.Jul 4 2016, 3:38 AM
alexfh edited edge metadata.

LG

This revision is now accepted and ready to land.Jul 4 2016, 3:38 AM
This revision was automatically updated to reflect the committed changes.