C++ Editor: check for method existing decl/def when inserting new ones.

This commit is contained in:
Erik Verbruggen
2010-10-06 15:49:59 +02:00
parent 0555837c7f
commit ac9fc40645
4 changed files with 60 additions and 46 deletions

View File

@@ -132,6 +132,8 @@ public:
{
Function *funTy = control()->newFunction(0, 0);
funTy->copy(type);
funTy->setConst(type->isConst());
funTy->setVolatile(type->isVolatile());
funTy->setName(rewrite->rewriteName(type->name()));