More improved warnings for duff base classes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6877 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
25d65e6ce9
commit
2cb0999e75
1 changed files with 4 additions and 2 deletions
|
|
@ -178,7 +178,8 @@ class TypePass : private Dispatcher {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Strcmp(nodeType(bcls),"classforward") != 0) {
|
if (Strcmp(nodeType(bcls),"classforward") != 0) {
|
||||||
Swig_error(Getfile(bname),Getline(bname),"'%s' is not a class. \n",bname);
|
Swig_error(Getfile(cls),Getline(cls),"'%s' does not have a valid base class.\n", Getattr(cls,"name"));
|
||||||
|
Swig_error(Getfile(bcls),Getline(bcls),"'%s' is not a valid base class.\n", bname);
|
||||||
} else {
|
} else {
|
||||||
Swig_warning(WARN_TYPE_INCOMPLETE,Getfile(cls),Getline(cls),"Base class '%s' is incomplete.\n", bname);
|
Swig_warning(WARN_TYPE_INCOMPLETE,Getfile(cls),Getline(cls),"Base class '%s' is incomplete.\n", bname);
|
||||||
Swig_warning(WARN_TYPE_INCOMPLETE,Getfile(bcls),Getline(bcls),"Only forward declaration '%s' was found.\n", bname);
|
Swig_warning(WARN_TYPE_INCOMPLETE,Getfile(bcls),Getline(bcls),"Only forward declaration '%s' was found.\n", bname);
|
||||||
|
|
@ -190,7 +191,8 @@ class TypePass : private Dispatcher {
|
||||||
if (!ilist) ilist = NewList();
|
if (!ilist) ilist = NewList();
|
||||||
Append(ilist,bcls);
|
Append(ilist,bcls);
|
||||||
} else {
|
} else {
|
||||||
Swig_warning(WARN_TYPE_UNDEFINED_CLASS,Getfile(bcls),Getline(bcls),"class '%s' must be defined before it is used as a base class.\n", bname);
|
Swig_warning(WARN_TYPE_UNDEFINED_CLASS,Getfile(cls),Getline(cls),"Base class '%s' undefined.\n", bname);
|
||||||
|
Swig_warning(WARN_TYPE_UNDEFINED_CLASS,Getfile(bcls),Getline(bcls),"'%s' must be defined before it is used as a base class.\n", bname);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue