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

Enum values declared inside a function are not parsed

XMLWordPrintable

    • 80a3caa39626f3d57079e300008afda4a897dd6d

      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);
      }
      

        For Gerrit Dashboard: QTCREATORBUG-5456
        # Subject Branch Project Status CR V

            erikv Erik Verbruggen
            orgads Orgad Shaneh
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes