[PATCH] D50147: clang-format: support external styles

Francois Ferrand via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 4 08:51:19 PDT 2018


Typz added a comment.

clang-format does indeed support .clang-format, which is great for *isolated* projects, and which is not affected by this patch.

This patch addresses the issue of *centralizing* the definition of styles, e.g. allowing individual projects to reference externally defined styles. This is useful when deploying a coding styles compagny-wide, to avoid copying the configuration in each project (and later having problem issues to maintain the styles or check if the correct style is indeed used). Another way of seeing it is that it allows extending the styles which are hard-coded in clang-format (llvm, google, ...)


Repository:
  rC Clang

https://reviews.llvm.org/D50147





More information about the cfe-commits mailing list