Clang format will often format a range of code wider then the requested format range. Returning a replacement outside of the requested range can mess with clients. Keeping the formatting in range of what the client asks gives more expected results and will limit the impact of partial formatting in diffs.
A specific example: a problem often occurs when using VSCode in "format modified lines" mode. The client will ask clangd to format two non-continugous lines, separately. Clangd replies to both requests with replacements for both lines, effectively providing four replacements in total. VSCode will either apply replacements twice (messing up the results) or simply error out and skip the formatting.
clang-format not found in user's PATH; not linting file.