I checked this patch on my own build on RHEL 6. Regressions were OK.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Using size() to actually implement the empty() method of a container seems fine to me and should be considered a false positive of clang-tidy.
Comment Actions
Only three containers implement empty() via size(), so it'll be better to make them consistent with other containers.
| include/llvm/CodeGen/LiveRangeEdit.h | ||
|---|---|---|
| 158 | I don't really understand how it is more clear or better? I prefer the other version of empty() FWIW. | |
| include/llvm/CodeGen/LiveRangeEdit.h | ||
|---|---|---|
| 158 | +1 | |
I don't really understand how it is more clear or better? I prefer the other version of empty() FWIW.