inspection code formatting in C++
Hello,
We desined some coding guidelines for our C++ code. Is it possible to get warnings in ReSharper->Inspect for C++ code Formatting Style issues?
It will be best to validate submitted code on our build system by JetBrains.ReSharper.CommandLineTools...
Is there a way to do that?
Thanks in advance,
Nikolay
Please sign in to leave a comment.
Hello Nikolay,
C++ command-line tools only allow to get code inspections results, and unfortunately R++ does not have any formatting-related inspections at the moment (the only inspection tangentially related to formatting rules is the naming inspection).
I believe your best bet is to run clang-format on code check-in, or manually run ReSharper code cleanup/clang-format once in a while on the entire codebase. Please note that R++ understands clang-format configuration files to some degree, so you should be able to use the same config for both R++ and clang-format.
Thanks!