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

QtCreator does not find usages in BOOST_FOREACH

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Not Evaluated
    • None
    • Qt Creator 2.8.1, Qt Creator 3.3.2, Qt Creator 4.6.0-beta1
    • C/C++/Obj-C++ Support
    • Linux Mint 17 Qiana
      Linux VirtualBox 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

    Description

      Assuming we have code like this:

      #include <boost/foreach.hpp>
      #include <vector>
      
      struct Test
      {
          int field;
          int fun(void) { return 0;};
      };
      
      
      int main()
      {
      
          Test t;
          int k1 = t.field;
          int v1 = t.fun();
      
          std::vector<Test> vec;
      
          BOOST_FOREACH(Test & s, vec)
          {
              int k2 = s.field;
              int v2 = s.fun();
          }
      
          return 0;
      }
      

      Qt creator does not find usages (references) to 'field' or funciton 'fun' of class Test.

      This issue exists regardles of code model beeing set. (Clang or custom)

      I've verified that this issue also exists for old version of qtcreator (eg. 2.8.1)

      Attachments

        Activity

          People

            kosjar Nikolai Kosjar
            grzechu81 Grzegorz Wolszczak
            Votes:
            4 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: