This is an archive of the discontinued LLVM Phabricator instance.

[LLVM] Fix some Clang-tidy modernize-use-using and Include What You Use warnings; other minor fixes
AcceptedPublic

Authored by Eugene.Zelenko on Aug 29 2016, 6:53 PM.

Details

Summary

I checked this patch on my own build on RHEL 6. Regressions were OK.

I decided to make review, because my previous changes caused little controversy.

Diff Detail

Repository
rL LLVM

Event Timeline

Eugene.Zelenko retitled this revision from to [LLVM] Fix some Clang-tidy modernize-use-using and Include What You Use warnings; other minor fixes.
Eugene.Zelenko updated this object.
Eugene.Zelenko set the repository for this revision to rL LLVM.
Eugene.Zelenko added a subscriber: llvm-commits.
compnerd accepted this revision.Aug 30 2016, 7:38 AM
compnerd edited edge metadata.

LGTM with the extra whitespace around the namespace removed.

This revision is now accepted and ready to land.Aug 30 2016, 7:38 AM

Actually Mehdi found that spaces are consistent with examples in LLVM coding standards.

mehdi_amini edited edge metadata.Sep 27 2016, 6:21 PM

Actually Mehdi found that spaces are consistent with examples in LLVM coding standards.

With *long* namespace, not small ones though (you mix both here)

I think it's better to be consistent with spacing.

I think it's better to be consistent with spacing.

Sure (and I really don't care about that in the end) but:

  1. Don't claim you're doing so according to the coding standard, because it is not true.
  2. Different context, different rules: consistency is context-sensitive. A rule saying "include spacing for every 'long' namespace" is also consistent.
shafik added a subscriber: shafik.Sep 21 2023, 8:26 AM

Should this be closed?

Herald added a project: Restricted Project. · View Herald TranscriptSep 21 2023, 8:26 AM