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

Members for class resolved by a macro are not always recognized

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • None
    • Qt Creator 2.8.0, Qt Creator 3.0.0-rc1, Qt Creator 3.0.1
    • C/C++/Obj-C++ Support
    • None

    Description

      Autocompletion doesn't work with fixture pattern on google test.

      Minimal example:

      #define EXPLICIT_RUN \
          void Foo::Run1()
      #define BASE_RUN(parent) \
          void parent::Run2()
      #define DERIVED_RUN(parent) \
      class Derived : public parent { \
      public: \
          void Run(); \
      }; \
      void Derived::Run()
      
      class Foo
      {
      public:
          void Run1();
          void Run2();
          int bar;
      };
      
      EXPLICIT_RUN {
          bar; // brown
      }
      
      BASE_RUN(Foo) {
          bar; // black
      }
      
      DERIVED_RUN(Foo) {
          bar; // black
      }

      Gtest example:

      #include <gtest/gtest.h>
      
      class FooTest : public ::testing::Test {
      protected:
          int foo;
      };
      
      TEST_F(FooTest, First) {
          foo; // black
      }

      Attachments

        Issue Links

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

          Activity

            People

              kosjar Nikolai Kosjar
              orgads Orgad Shaneh
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes