Compare two DeclGroupRefs

Hello devs,
   I need to compare two clang::DeclGroupRefs. Could somebody have a look into that patch and see whether I am doing it right?
Thanks a lot!
Vassil

Index: ../clang/include/clang/AST/DeclGroup.h