mirror of
https://github.com/pybind/pybind11.git
synced 2026-03-14 20:27:47 +00:00
Add more readability tidy rules (#5924)
* Apply clang-tidy readibility fixes Signed-off-by: Yuanyuan Chen <cyyever@outlook.com> * Add checks Signed-off-by: Yuanyuan Chen <cyyever@outlook.com> * More fixes Signed-off-by: cyy <cyyever@outlook.com> --------- Signed-off-by: Yuanyuan Chen <cyyever@outlook.com> Signed-off-by: cyy <cyyever@outlook.com>
This commit is contained in:
@@ -55,7 +55,7 @@ template <class Map>
|
||||
Map *times_ten(int n) {
|
||||
auto *m = new Map();
|
||||
for (int i = 1; i <= n; i++) {
|
||||
m->emplace(int(i), E_nc(10 * i));
|
||||
m->emplace(i, E_nc(10 * i));
|
||||
}
|
||||
return m;
|
||||
}
|
||||
@@ -65,7 +65,7 @@ NestMap *times_hundred(int n) {
|
||||
auto *m = new NestMap();
|
||||
for (int i = 1; i <= n; i++) {
|
||||
for (int j = 1; j <= n; j++) {
|
||||
(*m)[i].emplace(int(j * 10), E_nc(100 * j));
|
||||
(*m)[i].emplace(j * 10, E_nc(100 * j));
|
||||
}
|
||||
}
|
||||
return m;
|
||||
|
||||
Reference in New Issue
Block a user