Andersbakken / rtags

A client/server indexer for c/c++/objc[++] with integration for Emacs based on clang.
http://www.rtags.net
GNU General Public License v3.0
1.83k stars 254 forks source link

Some files in Kernel source code not indexed #1362

Open novakboskov opened 4 years ago

novakboskov commented 4 years ago

Describe the bug This probably is not a bug, but rather a question

Some parts of mm in Linux Kernel are not indexed while others are. For example, rtags-find-symbol-at-point in mm/vmscan.c works, while in mm/cma.c it does not work.

To Reproduce

  1. Generate compilation database with bear make
  2. Run RDM server ~/.emacs.d/elpa/rtags-20191029.2101/rtags-2.34/bin/rdm &
  3. Load the compilation database ~/.emacs.d/elpa/rtags-20191029.2101/rtags-2.34/bin/rc
  4. Try rtags-find-symbol-at-point in mm/vmscan.c, it works. Try in mm/cma.c, it does not work. Fails with the message RTags: ~/CODE/linux/mm/cma.c is not indexed
  5. Try to manually index it ~/.emacs.d/elpa/rtags-20191029.2101/rtags-2.34/bin/rc --reindex ~/CODE/linux/mm/cma.c. It fails witht the message No matches.

Expected behavior I would expect to have all the files in mm indexed.

Environment (please complete the following information):

Additional context What controls which files are indexed and which are not?