The Format library has no way to specify a specific file to be used as the style source. It climbs the path looking for ‘.clang_format’. This patch adds the ability to specify a specific file to use for clang Format utilities.
My apologies if something isn’t quite right with regards to standards or is missing, this is my first time working with clang and submitting a patch. Let me know what the issues are and I’ll see what I can do to take care of them.
This patch also addresses bug 28107: https://bugs.llvm.org//show_bug.cgi?id=28107
-Dan
Format.patch (2.35 KB)