chore: clang format following the current style

Signed-off-by: Lorenzo Fontana <lo@linux.com>

Co-authored-by: Leonardo Di Donato <leodidonato@gmail.com>
This commit is contained in:
Lorenzo Fontana
2019-07-02 16:36:20 +00:00
committed by Lorenzo Fontana
parent 5fdf658d0e
commit b2ef08fd30
4 changed files with 118 additions and 111 deletions

View File

@@ -1,10 +1,16 @@
# This coding convention's solely goal is to approximately match the current code style.
# It MUST not be intended in any other way until a real and definitive coding convention is put in.
---
BreakBeforeBraces: GNU
ColumnLimit: 0
IndentWidth: 4
Language: Cpp
BasedOnStyle: LLVM
AccessModifierOffset: -8
BreakBeforeBraces: Allman
BreakConstructorInitializers: AfterColon
ColumnLimit: 0
ConstructorInitializerIndentWidth: 8
ContinuationIndentWidth: 8
DerivePointerAlignment: true
IndentWidth: 8
SortIncludes: false
SpaceAfterTemplateKeyword: false
SpaceBeforeCtorInitializerColon: false
SpaceBeforeParens: Never
Standard: Auto
UseTab: Always

View File

@@ -24,7 +24,8 @@ limitations under the License.
#include "token_bucket.h"
#include "utils.h"
token_bucket::token_bucket() : token_bucket(sinsp_utils::get_current_time_ns)
token_bucket::token_bucket():
token_bucket(sinsp_utils::get_current_time_ns)
{
}