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

C++ code parsing does not understand MS suffix ui64

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Done
    • Affects Version/s: Qt Creator 3.3.0, Qt Creator 3.5.0, Qt Creator 3.5.1, Qt Creator 3.6.0
    • Fix Version/s: Qt Creator 4.0.0-beta1
    • Component/s: C/C++/Obj-C++ Support
    • Labels:
      None
    • Environment:

      Windows 7 Enterprise
      Microsoft Visual Studio 9.0 compiler

    • Commits:
      369b1f7f38ab81ba216e03fc724925db8f1b11ed

      Description

      The C++ parser does not like this code, underlining the lines containing the macro value (and usually the one below) with "expected a declaration", "expected token ';', got 'foo'", "unexpected token '<error>'":

      #include <climits>

      typedef unsigned long long Foo;
      #define FOO ULLONG_MAX
      Foo foo = FOO;

      if (foo)

      { // ... }

        Attachments

        1. foo_clang.png
          38 kB
          Dariusz Szczepanek
        2. foo.png
          33 kB
          Dariusz Szczepanek
        3. testfoo.png
          20 kB
          André Hartmann

          Issue Links

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

            Activity

              People

              Assignee:
              kosjar Nikolai Kosjar
              Reporter:
              neuviemeporte Dariusz Szczepanek
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes