[PATCH] D58190: [clangd] Add tests for template specializations
Ilya Biryukov via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 18 02:48:46 PST 2019
ilya-biryukov added inline comments.
================
Comment at: unittests/clangd/XRefsTests.cpp:376
+ }
+ )cpp",
};
----------------
While here, could wee add tests for a few more cases? They are all represented by different classes in a hierarchy in clang, so each could potentially break:
```
/// partial template specialization
template <class T>
struct Foo<T*> {};
^Foo<int*> x;
/// function template specializations
template <class T>
void foo(T);
template <>
void foo(int);
int x = fo^o(10);
/// variable template decls
template <class T>
T var = T();
template <>
double var<int> = 10;
double y = va^r<int>;
```
Repository:
rCTE Clang Tools Extra
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D58190/new/
https://reviews.llvm.org/D58190
More information about the cfe-commits
mailing list