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.

14 lines
305 B

DEFINE-CHECKER FIND_CXX_COPY_CONSTRUCTOR = {
LET is_copy_constructor =
is_node("CXXConstructExpr") AND is_cxx_copy_constructor();
SET report_when =
IN-NODE VarDecl WITH-TRANSITION InitExpr
(is_copy_constructor HOLDS-EVENTUALLY )
HOLDS-EVENTUALLY;
SET message = "Found Copy Constructor";
};