[PATCH] D34252: Add arbitrary file/path support to clang-format style file selection

MyDeveloperDay via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 5 02:39:39 PST 2019


MyDeveloperDay added a comment.

I recently hit this issue where I was clang-formatting generated code out of a source tree, which was then copied into a source tree. This failed my post build clang-format validation check and I couldn't understand why. it was only later I realised that unless I have the same .clang-format file locally when I clang-format the generated files or if I only clang-format them after I've copied them in will this work.

A patch like this (and this isn't the only one I've seen like this that lets me point clang-format to a specifc .clang-format file would have helped here.) are you interested in this patch or something like this still?  (I realize its a long time since you got a response)


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D34252/new/

https://reviews.llvm.org/D34252





More information about the cfe-commits mailing list