This is an archive of the discontinued LLVM Phabricator instance.

Remove cases of using namespace std
ClosedPublic

Authored by shafik on Mar 3 2022, 8:11 PM.

Details

Summary

We had using namespace std; sprinkled around several source files and tests.

This also follows the LLVM coding standard.

Diff Detail

Event Timeline

shafik created this revision.Mar 3 2022, 8:11 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 3 2022, 8:11 PM
shafik requested review of this revision.Mar 3 2022, 8:11 PM

As a side note, I noticed that we don't prefix typedefs from cstdint with std:: e.g. size_t. These typedefs are not guaranteed to be in the global namespace.

This revision is now accepted and ready to land.Mar 3 2022, 8:55 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptMar 4 2022, 12:51 PM