Is there a style checker for c++?

前端 未结 3 850
终归单人心
终归单人心 2021-02-03 14:21

I have worked with java for a while now, and I found checkstyle to be very useful. I am starting to work with c++ and I was wondering if there is a style checker with similar fu

3条回答
  •  爱一瞬间的悲伤
    2021-02-03 14:24

    I have had good feedback about Artistic Style which allows to apply a uniform style on code without too much hassle.

    It's free and there are plenty of "classic" styles already defined. It might not work with C++0x new constructs though.

    I am also expecting a Clang library, though I haven't found any to date. Normally, given Clang's structure it should be relatively easy, but then it's always easier to say than to code and I guess nobody took the time yet.

提交回复
热议问题