[cfe-users] Visual Studio clang-format extension difficulties

Michael Price michael.b.price.dev at gmail.com
Sat Sep 7 17:58:54 PDT 2013


FWIW, when I run clang-format directly when in the directory with the
source code, I get this message at the top of the output:

Can't find usable .clang-format, using LLVM style


On Sat, Sep 7, 2013 at 7:06 PM, Michael Price <michael.b.price.dev at gmail.com
> wrote:

> The guidance for how to use the "File" configuration for the options is
> not clear.
>
> I've put a .clang-format file in the same directory as the source code,
> but it doesn't seem to be picking up those settings.  Does anyone have an
> example of how this is supposed to work?
>
> They guidance provided by the plugin (in the Visual Studio options dialog
> for the extension) gives an example for the content of the YAML file along
> the lines of
>
> '{BasedOnStyle: "LLVM", IndentWidth:8}'
>
> But this exact string doesn't seem to work, neither does removing the
> outer quotes, nor the curly braces, nor the commas (which is the format
> that clang-format -dump-config prints out).
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-users/attachments/20130907/7d0ee103/attachment.html>


More information about the cfe-users mailing list