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

REGRESSION: Comment between macro variables breaks parsing

XMLWordPrintable

    • 009d6b1e2ffd9fc617c2bfe135daf2eb107fc5b6

      #define FOO(x, y) { (void)x; (void)y; }
      
      void foo()
      {
          FOO(42, // comment
              45);
      }
      
      void bar()
      { // unexpected token `{'
      }
      
      void baz(int goo) // expected token `;' got `int'
      {
      }

      Happens only for single-line comments (//)

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

            leamelo Leandro T. C. Melo
            orgads Orgad Shaneh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes