This seems to be as close as I can get it to my style. I'd've wanted to also set Cpp11BracedListStyle[1] to Block, but that ended up misformatting some compound literals that included expressions with binary operators. I'm also unsure what is going on with the formatting of _Generic(). [1] https://clang.llvm.org/docs/ClangFormatStyleOptions.html#cpp11bracedliststyle
6 lines
197 B
C
6 lines
197 B
C
#include "vector_internal.h"
|
|
|
|
#define STR(literal) MAKE_SPAN(char, (literal), sizeof(literal) - 1)
|
|
|
|
bool str_eq(SPAN(char) a, SPAN(char) b);
|
|
bool starts_with(SPAN(char) string, SPAN(char) prefix);
|