Find all functions whose return type is not a pointer
// FuncDeclarator [ not parent::PtrDeclarator | parent::PtrDeclarator [ @Spec != KTC_POINTEROPERATOR_POINTER ] ]
1 // no match - returns pointer 2 void *foo() { 3 4 /*code*/ 5 } 6 // no match - returns pointer 7 FILE *xfo(const char *name) { 8 9 /*code*/ 10 } 11 12 // finds this - returns reference, not a pointer 13 int &getir(unsigned key) { 14 15 /*code*/ 16 } 17 18 // and this 19 int boo() { 20 21 /*code*/ 22 }
Use the not operator to negate the result of a predicate.