bug: return type differing between cpp file and h file
Posted: Tue Oct 27 2015 1:51 pm
I have a class with a function that returns an integer via a typedef that is scoped to that class, e.g.:
MyTypeDef doSomething() in the header file
and MyClass::MyTypedef MyClass::doSomething() in the cpp file.
DoxyPress is complaining: Warning: no uniquely matching class member found for <headerFileFunctionDecl>
I saw similar warnings when the return type was not scoped to the class. Those warnings were useful and I have changed my headers in those cases, making it <missingClassName>::MyReturnType. But I don't want to do that in this case since the class name is in scope in the header file because it is the class that is declaring the function. Hence, I think this is a bug.
MyTypeDef doSomething() in the header file
and MyClass::MyTypedef MyClass::doSomething() in the cpp file.
DoxyPress is complaining: Warning: no uniquely matching class member found for <headerFileFunctionDecl>
I saw similar warnings when the return type was not scoped to the class. Those warnings were useful and I have changed my headers in those cases, making it <missingClassName>::MyReturnType. But I don't want to do that in this case since the class name is in scope in the header file because it is the class that is declaring the function. Hence, I think this is a bug.