Skip to content

Instantly share code, notes, and snippets.

Setting up modern C++ development environment in Emacs

Current situation

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.

We couldn’t find that file to show.
#include <iostream>
int main() {
std::cout << "test\n";
return 0;
}