C linting and formatting
You can use either gcc or clang for this, they come with static code analyzers. The flag -fsyntax-only prevents them from compiling object files, which may be useful (see
here).
For formatting, there’s ClangFormat ( can be used in Clion).