Skip to content
  • Clang tidy help

    Unsolved C++ Gurus clang-tidy beautifier clang-format c++
    4
    0 Votes
    4 Posts
    1k Views
    S
    Hi @Kent-Dorfman and @Eukaryote ! :) Of course, I have read and viewed the documentation. However, I have problems with the realization. I am a beginner and have not yet come into contact with this topic. For this reason, I thought I could find support here.
  • Google C++ Style Guide

    Unsolved Qt Creator and other tools clang-format clang-tidy
    2
    0 Votes
    2 Posts
    1k Views
    david.skolandD
    I wouldn't know about Google's C++ style guide, but Qt certainly have their own guidelines for Qt itself: https://wiki.qt.io/Qt_Coding_Style There is a _clang-format file used by clang-format in the supermodule, which should be in line with the standard: https://github.com/qt/qt5/blob/dev/_clang-format You're completely free to choose your own style for your projects using Qt, though.
  • 1 Votes
    3 Posts
    2k Views
    J
    this Bash solution didn't work for me, on account of a multi-level project structure that i was dealing with. (at least, i think it was multi-level.) What did work for me was something akin to the following: qmake ./my_project.pro -spec linux-clang CONFIG+=release CONFIG+=DISABLE_DEVELOPER_MODULES CONFIG+=force_debug_info && /usr/bin/make qmake_all make -j $CORES VERBOSE=y all &>make_output.txt compiledb --parse make_output.txt mkdir build/yamls run-clang-tidy -p . -j $CORES -clang-tidy-binary $CLANG_TIDY_PATH -checks=-*,bugprone-*,clang-*,cppcoreguidelines-*,modernize-* -export-fixes build/yamls this gives me a bunch of moc_* complaints, but also complaints on my actual code. the moc_* complaints seem to be clang-tidy's complaints about Qt itself, so i filter those out.