Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. Tools for enforcing coding standard
Forum Updated to NodeBB v4.3 + New Features

Tools for enforcing coding standard

Scheduled Pinned Locked Moved 3rd Party Software
5 Posts 3 Posters 1.7k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MiJo
    wrote on last edited by
    #1

    I'm looking for a tool to enforce coding standard. Preferably a open source tool, which can be used on Windows. Maybe even integration with Visual studio, but an external tool will also be just fine.

    Does Qt have some kind of system for this?

    Anyone has any ideas on this?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mikeosoft
      wrote on last edited by
      #2

      I'm not sure what you mean by enforce, I'm not an expert of this kind of thing, but I use Uncrustify which is a Qt add in, which is a very configurable source code beautifier. It doesn't enforce, you need to choose to run it, but is extremely configurable.

      You have to download the executable and ensure the configuration for the add in points to the configuration file.

      It works with C, C++, C# and a few other languages.

      It is cross platform, the web site suggests it is tested on XP, and I use it on Linux and I think I have also used it on W7. I don't know if it can be used in VS though.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        MiJo
        wrote on last edited by
        #3

        Thanks for the reply mikeosoft.

        Well, enforcing might be a bit strict, but I want to analyze the code to see if it matches our coding standard.

        I will take a look a Uncrustify.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          MiJo
          wrote on last edited by
          #4

          Uncrustify seems to me more like a tool to make the code look neat, setting indentation, brancing etc.

          I would like to go a little bit further, checking for naming conventions, naming of Classes, member function and variables etc. Is there a way to do this with Uncrustify?

          1 Reply Last reply
          0
          • A Offline
            A Offline
            andreyc
            wrote on last edited by
            #5

            I don't think you will be able to get it with uncrustify.
            You may try to use "Clang Tools":http://clang.llvm.org/docs/HowToSetupToolingForLLVM.html#using-clang-tools

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved