This is an archive of the discontinued LLVM Phabricator instance.

[clang-tidy] Ignore using-declarations defined in marcro in misc-unused-using-decls checks.
ClosedPublic

Authored by hokein on May 12 2016, 1:32 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

hokein updated this revision to Diff 57003.May 12 2016, 1:32 AM
hokein updated this revision to Diff 57005.
hokein retitled this revision from to [clang-tidy] Ignore using-declarations defined in marcro in misc-unused-using-decls checks..
hokein updated this object.

Fix code-style.

hokein set the repository for this revision to rL LLVM.
hokein added a subscriber: cfe-commits.
djasper accepted this revision.May 12 2016, 1:52 AM
djasper edited edge metadata.

Looks good.

clang-tidy/misc/UnusedUsingDeclsCheck.cpp
38 ↗(On Diff #57005)

nit: "in a macro" or "in macros".

40 ↗(On Diff #57005)

nit: remove braces

This revision is now accepted and ready to land.May 12 2016, 1:52 AM
djasper added inline comments.May 12 2016, 1:53 AM
clang-tidy/misc/UnusedUsingDeclsCheck.cpp
39 ↗(On Diff #57005)

Thinking some more, maybe just use TargetDecl->getLocation().isMacroID()?

hokein updated this revision to Diff 57008.May 12 2016, 2:47 AM
hokein edited edge metadata.

Address review comments.

hokein marked 3 inline comments as done.May 12 2016, 2:48 AM
hokein added inline comments.
clang-tidy/misc/UnusedUsingDeclsCheck.cpp
39 ↗(On Diff #57008)

Good point. Using isMacroID is enough.

This revision was automatically updated to reflect the committed changes.
hokein marked an inline comment as done.