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

Fails to parse any struct/class with an __attribute__ attached to it

XMLWordPrintable

      Here's an example struct declaration Qt Creator has problems with:

      struct MyStruct
      {
      char a;
      char b;
      } _attribute_((packed));

      Qt Creator fails to parse that struct. It won't autocomplete its fields, it won't go to its declaration, and so on. It just doesn't exist for it.

      The _attribute_ mechanism is a standard gcc feature which quite widely used. It's the only way to declare structure packing, for example. It would be nice if Qt Creator would parse such declarations correctly.

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

            erikv Erik Verbruggen
            dragonroot Konstantin Isakov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes