[cfe-users] Fwd: [cfe-dev] matcher for obj-c variable declarations.

2016-09-16 Thread Alfred Zien via cfe-users
cfe-dev was wrong list may be? > Hi to everyone! > > I'm new to clang and libtooling, and I'm making some cheker tool that emits a > error if any obj-c variable declaration doesn't have nullability specifier. > > I have code like this > > A* a = [[A alloc] init]; > B* _Null_unspecified b =

[cfe-users] dissecting the type of a VarDecl

2016-09-16 Thread folkert via cfe-users
Hi, I have a VarDecl instance for which I want to dissect the type. E.g. a const int a would be a const, an int and the name a / std::vector would be namespace std, vector and so on. The first one is easy but the second one: I have no idea where to begin. Sofar I have the following: #include #