================
@@ -398,7 +398,7 @@ const RawComment *ASTContext::getRawCommentForAnyRedecl(
continue;
}
const RawComment *RedeclComment = getRawCommentForDeclNoCache(Redecl);
- if (RedeclComment) {
+ if (RedeclComment && RedeclComment->getRawText(SourceMgr) != "/*static*/")
{
----------------
Sterling-Augustine wrote:
Two things:
1. This code path will now be taken less often. Before, any comment at all gets
this treatment. Now only a very specific one does. Is that actually correct?
2. I know this is the most-common style, but I wonder if we can be more generic
than this. eg, `/* static */` should probably also be ignored.
https://github.com/llvm/llvm-project/pull/164854
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits