diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..178882d --- /dev/null +++ b/.clang-format @@ -0,0 +1,60 @@ +--- +Language: Cpp +BasedOnStyle: LLVM + +# Indentation +IndentWidth: 4 +TabWidth: 4 +ContinuationIndentWidth: 8 +AccessModifierOffset: -4 +#IndentPragmas: true # requires v12.0 + +# Includes +# group ordering is: +# 1. main header +# 2. double-quotes includes +# 3. caesar includes +# 4. all other angle bracket includes +SortIncludes: true +IncludeBlocks: Regroup +IncludeIsMainSourceRegex: '(\.cu)$' +IncludeCategories: + - Regex: '^"' + Priority: 1 + - Regex: '^