Skip to content

Commit

Permalink
DOC: Add GetNameOfClass macro's to DOXYGEN_PREDEFINED
Browse files Browse the repository at this point in the history
Currently, the itkVirtualGetNameOfClassMacro and itkOverrideGetNameOfClassMacro
calls do not get expanded properly by Doxygen. This commit aims to fix the
output from Doxygen at https://itk.org/Doxygen/html/
  • Loading branch information
N-Dekker authored and dzenanz committed Mar 7, 2024
1 parent 44c06f6 commit 77f5c6d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Utilities/Doxygen/DoxygenConfig.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ set(DOXYGEN_PREDEFINED
"itkCreateAnotherMacro(type)= virtual::itk::LightObject::Pointer CreateAnother() const;"
"itkFactorylessNewMacro(x)= static Pointer New(); virtual ::itk::LightObject::Pointer CreateAnother() const;"
"itkTypeMacro(thisClass,superclass)= virtual const char *GetNameOfClass() const;"
"itkVirtualGetNameOfClassMacro(thisClass)= virtual const char * GetNameOfClass() const;"
"itkOverrideGetNameOfClassMacro(thisClass)= const char * GetNameOfClass() const override;"
"itkEventMacro(thisClass,superclass)= class thisClass : public superclass {};"
"itkDeclareExceptionMacro(newexcp,parentexcp,whatmessage)= namespace itk { class newexcp : public parentexcp { public: newexcp(const char *file, unsigned int lineNumber) : parentexcp(file, lineNumber) { this->SetDescription(whatmessage); } newexcp(const std::string & file, unsigned int lineNumber) : parentexcp(file, lineNumber) { this->SetDescription(whatmessage); } itkTypeMacro(newexcp, , parentexcp); }; }"
"itkConceptMacro(thisName,thisConcept)= /* This class requires thisName in the form of thisConcept */"
Expand Down

0 comments on commit 77f5c6d

Please sign in to comment.