diff --git a/examples/00_example_template/example b/examples/00_example_template/example new file mode 100755 index 0000000..f3a0a4b Binary files /dev/null and b/examples/00_example_template/example differ diff --git a/makefile b/makefile index 5664c73..8d05f70 100644 --- a/makefile +++ b/makefile @@ -17,3 +17,5 @@ format: squiggle.c squiggle.h $(FORMATTER) squiggle.c $(FORMATTER) squiggle.h +lint: + clang-tidy squiggle.c -- -lm diff --git a/squiggle.c b/squiggle.c index adb50e8..517591d 100644 --- a/squiggle.c +++ b/squiggle.c @@ -217,7 +217,7 @@ struct box process_error(const char* error_msg, int should_exit, char* file, int exit(1); } else { char error_msg[MAX_ERROR_LENGTH]; - snprintf(error_msg, MAX_ERROR_LENGTH, "@, in %s (%d)", file, line); + snprintf(error_msg, MAX_ERROR_LENGTH, "@, in %s (%d)", file, line); // NOLINT: We are being carefull here by considering MAX_ERROR_LENGTH explicitly. struct box error = { .empty = 1, .error_msg = error_msg }; return error; }