Update clang-format config and apply

- Regroup and sort #include directives (like we used to, but automatic)
- Set AlwaysBreakTemplateDeclarations to true
This commit is contained in:
Geza Lore
2022-08-05 12:00:24 +01:00
parent fac8e76923
commit 96a4b3e5a5
241 changed files with 947 additions and 580 deletions
+3 -1
View File
@@ -17,6 +17,7 @@
//=============================================================================
#include "verilatedos.h"
#include "verilated_profiler.h"
#if VL_THREADED
@@ -60,7 +61,8 @@ uint16_t VlExecutionRecord::getcpu() {
//=============================================================================
// VlExecutionProfiler implementation
template <size_t N> static size_t roundUptoMultipleOf(size_t value) {
template <size_t N>
static size_t roundUptoMultipleOf(size_t value) {
static_assert((N & (N - 1)) == 0, "'N' must be a power of 2");
size_t mask = N - 1;
return (value + mask) & ~mask;