diff options
author | Rosen Penev <[email protected]> | 2023-01-15 13:43:27 -0800 |
---|---|---|
committer | GitHub <[email protected]> | 2023-01-15 13:43:27 -0800 |
commit | 0526ecd2f95877b167293e50ab8ce0ce614d03f4 (patch) | |
tree | ad80a5811292e87601020f6aadcb2f6ff138761d /core/cpu_caps.cpp | |
parent | d9d445772c50e53c12ab77d97cc5f3a76839d83a (diff) |
clang-tidy cleanups (#800)
* clang-tidy: use bool literals
Found with modernize-use-bool-literals
Signed-off-by: Rosen Penev <[email protected]>
* clang-tidy: replace std::bind with lambdas
Found with modernize-avoid-bind
Signed-off-by: Rosen Penev <[email protected]>
* clang-tidy: use data() instead of pointer stuff
Found with readability-container-data-pointe
Signed-off-by: Rosen Penev <[email protected]>
* clang-tidy: use empty()
Found with readability-container-size-empty
Signed-off-by: Rosen Penev <[email protected]>
* clang-tidy: remove static in anon namespace
Found with readability-static-definition-in-anonymous-namespace
Signed-off-by: Rosen Penev <[email protected]>
* clang-tidy: remove const return
Found with readability-const-return-type
Signed-off-by: Rosen Penev <[email protected]>
Signed-off-by: Rosen Penev <[email protected]>
Diffstat (limited to 'core/cpu_caps.cpp')
-rw-r--r-- | core/cpu_caps.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/cpu_caps.cpp b/core/cpu_caps.cpp index 103d2437..d4b4d86c 100644 --- a/core/cpu_caps.cpp +++ b/core/cpu_caps.cpp @@ -32,7 +32,7 @@ using reg_type = unsigned int; inline std::array<reg_type,4> get_cpuid(unsigned int f) { std::array<reg_type,4> ret{}; - __get_cpuid(f, &ret[0], &ret[1], &ret[2], &ret[3]); + __get_cpuid(f, ret.data(), &ret[1], &ret[2], &ret[3]); return ret; } #define CAN_GET_CPUID |