More improved warnings for duff base classes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6877 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
9345106eda
commit
2cbd22194b
1 changed files with 4 additions and 2 deletions
|
|
@ -178,7 +178,8 @@ class TypePass : private Dispatcher {
|
|||
}
|
||||
}
|
||||
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 {
|
||||
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);
|
||||
|
|
@ -190,7 +191,8 @@ class TypePass : private Dispatcher {
|
|||
if (!ilist) ilist = NewList();
|
||||
Append(ilist,bcls);
|
||||
} 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