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

Enum values declared inside a function are not parsed

    XMLWordPrintable

Details

    • 80a3caa39626f3d57079e300008afda4a897dd6d

    Description

      Consider the following example taken from QTCREATORBUG-1175. The values lalala, lululu and lilili are not colored in purple, and are not shown in autocomplete.

      Moving the enum declaration outside the function resolves this.

      int main(int argc, char* argv[])
      {
          enum Status { lalala, lululu, lilili };
          Status status = lalala;
          printf("%d", status);
      }
      

      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
              orgads Orgad Shaneh
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes