diff --git a/trick_source/codegen/Interface_Code_Gen/ClassVisitor.cpp b/trick_source/codegen/Interface_Code_Gen/ClassVisitor.cpp index 3bd544ee..8fd78dc4 100644 --- a/trick_source/codegen/Interface_Code_Gen/ClassVisitor.cpp +++ b/trick_source/codegen/Interface_Code_Gen/ClassVisitor.cpp @@ -310,6 +310,11 @@ bool CXXRecordVisitor::VisitFriendDecl( clang::FriendDecl *fd ) { if ( ! friend_str.find(init_func) ) { //std::cout << " found a friend!" << std::endl ; cval.setHasInitAttrFriend(true) ; + } else if ( ! friend_str.find("init_attr") ) { + std::cerr << bold(color(WARNING,"Warning")) << " " << cval.getFileName() << ":" << + ci.getSourceManager().getSpellingLineNumber(fd->getSourceRange().getBegin()) << ":" << std::endl ; + std::cerr << " friend " << friend_str << " does not match expected name " << + init_func << std::endl ; } } }