This is an archive of the discontinued LLVM Phabricator instance.

Fix false positive on anonymous namespaces in headers.
ClosedPublic

Authored by sbenza on Mar 19 2015, 9:27 AM.

Details

Summary

Anynoumous namespaces inject a using directive into the AST to import
the names into the containing namespace.
We should not have them in headers, but there is another warning for
that.

Diff Detail

Repository
rL LLVM

Event Timeline

sbenza updated this revision to Diff 22263.Mar 19 2015, 9:27 AM
sbenza retitled this revision from to Fix false positive on anonymous namespaces in headers..
sbenza updated this object.
sbenza edited the test plan for this revision. (Show Details)
sbenza added a reviewer: djasper.
sbenza added a subscriber: Unknown Object (MLST).
alexfh accepted this revision.Mar 19 2015, 10:22 AM
alexfh added a reviewer: alexfh.
alexfh added a subscriber: alexfh.

One more case where not matching implicit code would be useful.

Anyway, the patch looks good!

This revision is now accepted and ready to land.Mar 19 2015, 10:22 AM
This revision was automatically updated to reflect the committed changes.