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

Add Function Definition leaves out "struct" for C files

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes