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:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user