Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-121902

Use clang-format for the generated code if the respective option is provided in qt_add_<protobuf|grpc> calls

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P4: Low
    • None
    • None
    • GRPC, Protocol Buffers
    • None

    Description

      We may offer users the post-formatting of protobuf/grpc code. This feature can be controlled by the optional argument of qt_add<protobuf|grpc>_ CMake methods:

      qt_add_protobuf(mylib
          ...
          FORMAT
                clang-format
      )
      

      This will show users a nicer code when jumping using debugger or IDE.

      Attachments

        Activity

          People

            semlanik Alexey Edelev
            semlanik Alexey Edelev
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: