diff --git a/python/sglang/srt/speculative/cpp_lookahead/.clang-format b/python/sglang/srt/speculative/cpp_lookahead/.clang-format deleted file mode 120000 index 5a7a8cea7..000000000 --- a/python/sglang/srt/speculative/cpp_lookahead/.clang-format +++ /dev/null @@ -1 +0,0 @@ -../../../../../sgl-kernel/.clang-format \ No newline at end of file diff --git a/python/sglang/srt/speculative/cpp_lookahead/.clang-format b/python/sglang/srt/speculative/cpp_lookahead/.clang-format new file mode 100644 index 000000000..afbd654a7 --- /dev/null +++ b/python/sglang/srt/speculative/cpp_lookahead/.clang-format @@ -0,0 +1,15 @@ +BasedOnStyle: Google +IndentWidth: 2 +ColumnLimit: 120 +AllowShortFunctionsOnASingleLine: Empty +DerivePointerAlignment: false +PointerAlignment: Left +NamespaceIndentation: None +SortIncludes: true +AllowShortLoopsOnASingleLine: false +BinPackParameters: false # Prevents packing parameters in declarations +BinPackArguments: false # Prevents packing arguments in function calls +AlignAfterOpenBracket: AlwaysBreak # Forces a break after the opening parenthesis +AlignOperands: Align # Aligns arguments vertically +PenaltyBreakBeforeFirstCallParameter: 1 # Encourages breaking before the first argument +PenaltyReturnTypeOnItsOwnLine: 100 # Keeps return type with function name