You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
373 B
10 lines
373 B
DEFINE-CHECKER TEST_REFERENCE = {
|
|
SET report_when =
|
|
WHEN method_return_type("instancetype")
|
|
AND HOLDS-NEXT WITH-TRANSITION Parameters
|
|
(has_type("MyClass") OR has_type("MyClass &"))
|
|
AND declaration_has_name(REGEXP("^new.*:$"))
|
|
HOLDS-IN-NODE ObjCMethodDecl;
|
|
SET message = "Found reference in parameter of method new";
|
|
};
|