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

syntax parcing preinitialized C-struct

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • Qt Creator 2.0.1
    • C/C++/Obj-C++ Support
    • None
    • Linux desktop

    Description

      we have of C-structure with some AllocBlockParams_t type
      Editor have red underscore and inform me about syntax error
      replacing form from:

      {.x = y}

      to:

      { x : y }

      has no effect too
      GCC done without any errors and warnings

      int avmem_alloc_buffer(BufferDescr_t* Buffer_p, unsigned size, unsigned alignment, unsigned partition)
      {
      int ErrCode;

      AllocBlockParams_t AllocBlockParams =

      { .PartitionHandle = partition, .Size = size, .Alignment = alignment, .AllocMode = ALLOC_MODE_BOTTOM_TOP, .NumberOfForbiddenRanges = 0, .ForbiddenRangeArray_p = NULL, .NumberOfForbiddenBorders = 0, .ForbiddenBorderArray_p = NULL, }

      ;
      ...
      }

      Attachments

        Issue Links

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

          Activity

            People

              erikv Erik Verbruggen
              eugene_k Eugene
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes