vc 2017 ships with clang-format 6.0.0, 2019 ships with 7.0.0 judging from the 6.0.0 release notes[1] this should have worked?
Also I don't remember ever seeing that error. We ship 6.0.1 with our libs, what you can try is, go into Tools->Options->Text Editor->C/C++->Formatting->General Near the bottom of that list should be an option to browse to a custom clang-format, pick the one from the libs folder (win64_vc14/llvm/bin/clang-format) does that re-solve the issue for you? --Ray [1] https://releases.llvm.org/6.0.0/tools/clang/docs/ReleaseNotes.html#clang-format On 4/18/2019 9:28 AM, Harley Acheson wrote: > Campbell, > > When using Microsoft Visual Studio (Enterprise 2017 15.7.3), it does > automatically pick up > that clang is in force. It brings up a dialog box saying that "a > clang-format file was found > in your codebase." > > However, doing any operations at all it shows that "an Error occurred while > formatting with > ClangFormat" with specifics of "YAML:81:21: error: unknown key > 'IndentPPDirectives' > > I read somewhere that "IndentPPDirectives" is relatively new (with LLVM6) > so perhaps I need > to update something. No panic here though as I am not in danger of needing > to submit anything > right away. > > Yes, I can submit this as a bug if preferred. > > Cheers, Harley > _______________________________________________ > Bf-committers mailing list > [email protected] > https://lists.blender.org/mailman/listinfo/bf-committers _______________________________________________ Bf-committers mailing list [email protected] https://lists.blender.org/mailman/listinfo/bf-committers
