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

"Find Usages" doesn't work inside #if/#endif block.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • Qt Creator 2.6.0
    • C/C++/Obj-C++ Support
    • None
    • Fedora 17 (64 bit)

    Description

      When I try to find usages of some method inside the active and parsed #if/#endif block, nothing happens.

      The code is as follows:

      #ifndef IDBLevelDBBackingStore_h
      #define IDBLevelDBBackingStore_h
      
      #if ENABLE(INDEXED_DATABASE)
      #if USE(LEVELDB)
      
      #include "IDBBackingStore.h"
      #include <wtf/OwnPtr.h>
      
      namespace WebCore {
      
      class LevelDBComparator;
      class LevelDBDatabase;
      class LevelDBTransaction;
      class IDBFactoryBackendImpl;
      
      class IDBLevelDBBackingStore : public IDBBackingStore {
      public:
          static PassRefPtr<IDBBackingStore> open(SecurityOrigin*, const String& pathBase, const String& fileIdentifier, IDBFactoryBackendImpl*);
          virtual ~IDBLevelDBBackingStore();
      // ...
      

      I'm trying to find usages of the method open(...).

      There are definitions in the project's config file:

      #define ENABLE_INDEXED_DATABASE 1
      #define WTF_USE_LEVELDB 1
      
      #define USE(WTF_FEATURE) (defined WTF_USE_##WTF_FEATURE  && WTF_USE_##WTF_FEATURE)
      #define ENABLE(WTF_FEATURE) (defined ENABLE_##WTF_FEATURE  && ENABLE_##WTF_FEATURE)
      

      In the attachment there is a screenshot with another example. As you can see - coloring doesn't work too.

      Attachments

        Issue Links

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

          Activity

            People

              erikv Erik Verbruggen
              abyss.7 Ivan L
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes