diff options
author | albert-github <albert.tests@gmail.com> | 2018-06-18 16:51:21 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2018-06-18 16:51:21 (GMT) |
commit | 65a3129eea3d3f807fa6a641087c26c3d0100eac (patch) | |
tree | 113f80c625ca7ad6fe5b79606fe10fadc9ad6a85 /src | |
parent | 4536982bdebc0056d0c5d64a12881f20b5801c06 (diff) | |
download | Doxygen-65a3129eea3d3f807fa6a641087c26c3d0100eac.zip Doxygen-65a3129eea3d3f807fa6a641087c26c3d0100eac.tar.gz Doxygen-65a3129eea3d3f807fa6a641087c26c3d0100eac.tar.bz2 |
Bug 734308 - Error message when using memberof in a C macro
Made a better warning message, a 'define' is a global setting and cannot be made a member of a struct / class.
Diffstat (limited to 'src')
-rw-r--r-- | src/classdef.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/classdef.cpp b/src/classdef.cpp index 4977760..1af4700 100644 --- a/src/classdef.cpp +++ b/src/classdef.cpp @@ -671,6 +671,10 @@ void ClassDef::internalInsertMember(MemberDef *md, case MemberType_Variable: addMemberToList(MemberListType_variableMembers,md,FALSE); break; + case MemberType_Define: + warn(md->getDefFileName(),md->getDefLine()-1,"A define (%s) cannot be made a member of %s", + md->name().data(), this->name().data()); + break; default: err("Unexpected member type %d found!\n",md->memberType()); } |