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

C++ code parsing does not understand MS suffix ui64

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • Not Evaluated
    • Qt Creator 4.0.0-beta1
    • Qt Creator 3.3.0, Qt Creator 3.5.0, Qt Creator 3.5.1, Qt Creator 3.6.0
    • C/C++/Obj-C++ Support
    • None
    • Windows 7 Enterprise
      Microsoft Visual Studio 9.0 compiler

    • 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

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

          Activity

            People

              kosjar Nikolai Kosjar
              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