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

Very strange highlighting for macro that maps to a function

    XMLWordPrintable

Details

    • a450c13327124483ff36546a4c1f8488aa945c39

    Description

      Locals are painted in blue.

      #include <windows.h>
      
      struct Foo
      {
          char buffer[100];
      };
      
      int main()
      {
          Foo foo;
          ZeroMemory(foo.buffer, 100);
          return 0;
      }

      See the attached screenshot.

      Related macros (from winbase.h):

      #define RtlFillMemory(d,l,f) memset((d), (f), (l))
      #define RtlZeroMemory(d,l) RtlFillMemory((d),(l),0)
      #define ZeroMemory RtlZeroMemory

      I believe it is related to QTCREATORBUG-6958 and QTCREATORBUG-6175.

      Attachments

        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:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes