vim-codequery
vim-codequery copied to clipboard
find c++ class define
The classname is used in the cc file ,and class define in the .h file. Some cannot find the class define and meanwhile also cannot use ctrl+] to go to define, instead go to the construct func such as 3631 BlueStore::BlueStore(). Some can, and meanwhile can use ctrl+] to go to define.
Workaroud,i can use the func define by codequery and find the .h file,then find the class define. But How can we find a proper way?
Another issue: why enter one dir ,we should makedb in the dir? feel ugly ,because cscope can do this in the root dir properly.
3624 void BlueStore::handle_discard(interval_set<uint64_t>& to_release)
3625 {
3626 dout(10) << __func__ << dendl;
3627 assert(alloc);
3628 alloc->release(to_release);
3629 }
3630
3631 BlueStore::BlueStore(CephContext *cct, const string& path)
3632 : ObjectStore(cct, path),
3633 throttle_bytes(cct, "bluestore_throttle_bytes",
3634 cct->_conf->bluestore_throttle_bytes),
3635 throttle_deferred_bytes(cct, "bluestore_throttle_deferred_bytes",
3636 cct->_conf->bluestore_throttle_bytes +
3637 cct->_conf->bluestore_throttle_deferred_bytes),
3638 deferred_finisher(cct, "defered_finisher", "dfin"),
3639 kv_sync_thread(this),
3640 kv_finalize_thread(this),
3641 mempool_thread(this)
3642 {
3643 _init_logger();
3644 cct->_conf->add_observer(this);
3645 set_cache_shards(1);
3646 }
3647
3648 BlueStore::BlueStore(CephContext *cct,
3649 const string& path,
3650 uint64_t _min_alloc_size)
3651 : ObjectStore(cct, path),
3652 throttle_bytes(cct, "bluestore_throttle_bytes",