[PATCH] D65919: [clang-tidy] Add llvm-prefer-register-over-unsigned check and apply it to LLVM
Eugene Zelenko via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 8 10:56:36 PDT 2019
Eugene.Zelenko added a comment.
I think patch should be split at least on Clang-tidy check and results of its run on LLVM code. Probably per-target patches is even better solution.
================
Comment at: clang-tools-extra/clang-tidy/llvm/PreferRegisterOverUnsignedCheck.cpp:48
+ Replacement = "Register";
+ for (const UsingDirectiveDecl *UsingDirective: Context->using_directives())
+ if (UsingDirective->getNominatedNamespace()
----------------
You could use const auto * for iterators.
================
Comment at: clang-tools-extra/docs/ReleaseNotes.rst:85
+
+ Finds historical use of `unsigned` to hold vregs and physregs and rewrites
+ them to use `Register`
----------------
Please use double back-ticks to highlight language constructs. Same in documentation.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D65919/new/
https://reviews.llvm.org/D65919
More information about the cfe-commits
mailing list