data: parse type usages of types used as template arguments

This change ist just an interim solution and does not cover all cases.
The TokenLocation saved for the template argument is the location of the whole expression.
This commit is contained in:
Eberhard Graether
2015-05-05 23:21:43 +02:00
parent 7dcf8b0bdb
commit 7d48a873f7
3 changed files with 107 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
#include <memory>
class A
{
};
template <typename T>
class B
{
};
int main()
{
A a;
A* aPtr = nullptr;
std::shared_ptr<A> aSharedPtr = std::make_shared<A>();
B<A> b;
return 0;
}