<div dir="ltr">Alright, I figured it out.<div><br></div><div>The name of the file literally has to be ".clang-format".  A file that has an extension of ".clang-format" is not good enough.  IMO, the documentation should either be made more clear, or we should allows that form of filename.  On Windows, it is not obvious how to create a file that "has no filename, only an 'extension'".  In fact, Explorer freaks out and won't let you do it, you have to do it from the command-line or some application.  If I don't get any hits on this list, I'll forward over to the cfe-dev list.</div>
<div class="gmail_extra"><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Sep 7, 2013 at 7:58 PM, Michael Price <span dir="ltr"><<a href="mailto:michael.b.price.dev@gmail.com" target="_blank">michael.b.price.dev@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">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:<div>
<br></div><div>Can't find usable .clang-format, using LLVM style<br></div>
</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Sep 7, 2013 at 7:06 PM, Michael Price <span dir="ltr"><<a href="mailto:michael.b.price.dev@gmail.com" target="_blank">michael.b.price.dev@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">The guidance for how to use the "File" configuration for the options is not clear.<div><br></div>

<div>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?</div>
<div><br></div><div>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</div><div><br></div><div>'{BasedOnStyle: "LLVM", IndentWidth:8}'</div>


<div><br></div><div>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).</div></div>


</blockquote></div><br></div>
</div></div></blockquote></div><br></div>