[PATCH] D12407: [clang-format-vs] Add an option to reformat source code when file is saved to disk

Paul Hoad via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 23 13:04:50 PDT 2015

MyDeveloperDay added a comment.

Actually the 2010 failure may be my fault, I only have Visual C# installed for VS2010 and not the C++ compilers, as such it doesn't seem to understand C/C++ as the content type

if (!textBuffer.ContentType.IsOfType("C/C++"))

is failing because the ContentType is "plaintext", my guess is unless you install the C++ parts of VS it doesn't add the "File Type" or C/C++ and hence it can't detect that a .h file is anything other than plaintext, let me recheck VS2010 support after adding in the C++ support


More information about the cfe-commits mailing list