Currently, rtags offers the best support for code navigation of a C++ project in Emacs. It uses clang as the back-end to parse the source code. Other tools such as ctags, gtags, csope, dumb jump, etc. relies on regexp matching using a tag file, that is fine for C projects but difficult to parse C++. Semantics parse the source code in elisp and thus might be too slow for large projects, and also fall behind the new C++ features. cquery is an emerging tool that seems promising, too.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| int main() { | |
| std::cout << "test\n"; | |
| return 0; | |
| } |