ctags
ctags copied to clipboard
C++: Structured bindings
Described in http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0144r2.pdf
input.cc
#include <tuple>
std::tuple<int, int> f() {
return {9, 2};
}
int main(void)
{
auto [a, b] = f();
return a + b;
}
g++ accepts this input.
ctags should extract a and b.