[all-commits] [llvm/llvm-project] 08932d: [clang-tidy] Detect std::rot[lr] pattern within mo...

serge-sans-paille via All-commits all-commits at lists.llvm.org
Tue Apr 14 13:59:32 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 08932ddde177a7f9dacf5d34e209c48f3d52800e
      https://github.com/llvm/llvm-project/commit/08932ddde177a7f9dacf5d34e209c48f3d52800e
  Author: serge-sans-paille <sguelton at mozilla.com>
  Date:   2026-04-14 (Tue, 14 Apr 2026)

  Changed paths:
    M clang-tools-extra/clang-tidy/modernize/UseStdBitCheck.cpp
    M clang-tools-extra/clang-tidy/modernize/UseStdBitCheck.h
    M clang-tools-extra/docs/clang-tidy/checks/modernize/use-std-bit.rst
    M clang-tools-extra/test/clang-tidy/checkers/modernize/use-std-bit.cpp

  Log Message:
  -----------
  [clang-tidy] Detect std::rot[lr] pattern within modernize.use-std-bit (#186324)

Basically turning `x << N | x >> (64 - N)` into `std::rotl(x, N)`.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list