[index] Handle properly C++14's template variables.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Mon, 7 Nov 2016 21:20:15 +0000 (21:20 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Mon, 7 Nov 2016 21:20:15 +0000 (21:20 +0000)
commit9d8ab72a6931ef1d5810c815ce623666236b1427
tree3dd13eb5d7db0e18c352dfcb04fe581c02e2bc53
parent3e5b61f7dad2e9165b2f0c169e3ea6da26f3c987
[index] Handle properly C++14's template variables.

- Infer the right symbol kind.
- Provide a templated USR, similar to how we handle class templates.

rdar://28980398

llvm-svn: 286154
clang/lib/Index/IndexSymbol.cpp
clang/lib/Index/IndexingContext.cpp
clang/lib/Index/USRGeneration.cpp
clang/test/Index/Core/index-source.cpp