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

via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 12 23:32:21 PDT 2026


serge-sans-paille wrote:

This is a WIP, I'd like to catche more generic patterns like

```
x << 3 | x >> (sizeof(x)*8 - 3)
```

or maybe 

```
int x;
/* ... */
x << 3 | x >> (sizeof(int)*8 - 3)
```

I wonder if other patterns are common?

https://github.com/llvm/llvm-project/pull/186324


More information about the cfe-commits mailing list