================
@@ -398,7 +398,7 @@ const RawComment *ASTContext::getRawCommentForAnyRedecl(
continue;
}
const RawComment *RedeclComment = getRawCommentForDeclNoCache(Redecl);
- if (RedeclComment) {
+ if (RedeclComment && RedeclComment->getRawText(SourceMgr) != "/*static*/")
{
----------------
liepieshov wrote:
1. Before first comment will be returned right? Now, all static comments will
be skipped.
I can actually make it also to fallback to first found static comment, but I
don't know if it is actually necessary. Then again all current tests work with
this change.
2. I was going for the most strict option, but we can do more variants.
I know some people also mentioned `/*virtual*/` to me.
However I want to keep this check simple as well
https://github.com/llvm/llvm-project/pull/164854
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits