Displaying 1 result from an estimated 1 matches for "deepprint".
Did you mean:
deeppink
2012 Sep 13
1
[LLVMdev] Parsing C++ template parameters using cindex.py
...e below), but this is not the case with for example int. Any
hint on where the template type is located for int/float/etc?
/joel de vahl
Example code:
template <typename T>
class Test
{
T test;
};
struct S
{
};
Test<int> test_int;
Test<S> test_struct;
Tree dump script:
def DeepPrintType(node, depth = 0):
tabs = " " * depth
print tabs + "type"
print tabs + " kind", node.kind
def DeepPrint(node, depth = 0):
tabs = " " * depth
print tabs + "cursor", node.spelling
print tabs + " location", node.lo...