[clang-tools-extra] [clang-tidy] Fix convert-member-functions-to-static crash on attributed methods (PR #223007)
Zeyi Xu via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 11 21:28:43 PDT 2026
================
@@ -148,7 +148,7 @@ static SourceRange getLocationOfConst(const TypeSourceInfo *TSI,
const SourceManager &SourceMgr,
const LangOptions &LangOpts) {
assert(TSI);
- const auto FTL = TSI->getTypeLoc().IgnoreParens().getAs<FunctionTypeLoc>();
+ const auto FTL = TSI->getTypeLoc().getAsAdjusted<FunctionTypeLoc>();
----------------
zeyi2 wrote:
I think there might be more similar problems. I'll do a scan later when I have time.
https://github.com/llvm/llvm-project/pull/223007
More information about the cfe-commits
mailing list