[clang] [clang-tools-extra] [Autocomplete] skip static annotation comment (PR #164854)
Kostiantyn Liepieshov via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 23 11:36:32 PDT 2025
================
@@ -398,7 +398,7 @@ const RawComment *ASTContext::getRawCommentForAnyRedecl(
continue;
}
const RawComment *RedeclComment = getRawCommentForDeclNoCache(Redecl);
- if (RedeclComment) {
+ if (RedeclComment && RedeclComment->getRawText(SourceMgr) != "/*static*/") {
----------------
liepieshov wrote:
@Sterling-Augustine Updated the code to include static and virtual variations
https://github.com/llvm/llvm-project/pull/164854
More information about the cfe-commits
mailing list