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

Find usages classifies bitfield declaration as write access

    XMLWordPrintable

Details

    • All
    • a995a4633fe3162d8756e50134e7ec2c53afc763 (qt-creator/qt-creator/4.15)

    Description

      For the following snippet:

      typedef struct {
      	int bar: 1;
      } Foo;
      
      int main()
      {
      	Foo foo;
      	foo.bar = 1;
      	return foo.bar;
      } 

      the declaration `int bar: 1;` is classified as write access, while it should be declaration or other.

      Attachments

        Activity

          People

            kandeler Christian Kandeler
            aha_1980 André Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: