Changes in src/InitTweak/InitTweak.cc [b5fed34:d76c588]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/InitTweak/InitTweak.cc
rb5fed34 rd76c588 756 756 } 757 757 758 bool isCopyFunction( const ast::FunctionDecl * decl ) { 759 const ast::FunctionType * ftype = decl->type; 760 if ( ftype->params.size() != 2 ) return false; 761 762 const ast::Type * t1 = getPointerBase( ftype->params.front()->get_type() ); 763 if ( ! t1 ) return false; 764 const ast::Type * t2 = ftype->params.back()->get_type(); 765 766 return ResolvExpr::typesCompatibleIgnoreQualifiers( t1, t2, ast::SymbolTable{} ); 767 } 768 758 769 FunctionDecl * isAssignment( Declaration * decl ) { 759 770 return isCopyFunction( decl, "?=?" );
Note: See TracChangeset
for help on using the changeset viewer.