Answer provided by @Alan Birtles in the comments is correct. The file name should be .clang-format with a - instead of .clangformat
.clang-format
-
.clangformat