Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-21092

Add Function Definition leaves out "struct" for C files

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Duplicate
    • P3: Somewhat important
    • None
    • Qt Creator 4.7.0
    • C/C++/Obj-C++ Support
    • None

    Description

      Right now Qt Creator can be used to edit pure C projects, but that's only possible if the user shoehorns support for C++ to adapt to C's needs. However, that hack only goes so far as some features break in some form or another.

      For example, Qt Creator enables adding function definitions to C source files, but if the function is declared to accept structs as inputs the auto-generated function definition will leave out the "struct". That strategy might be valid with C++ but by omitting the "struct" the function definition ceases to be valid C.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              kosjar Nikolai Kosjar
              rui maciel Rui Maciel
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes