================
@@ -400,7 +400,7 @@ class DefineInline : public Tweak {
if (!SelNode)
return false;
Source = getSelectedFunction(SelNode);
- if (!Source || !Source->hasBody())
+ if (!Source || !Source->doesThisDeclarationHaveABody())
----------------
ArcsinX wrote:
It seems `doesThisDeclarationHaveABody()` can return `true` when there is no
body, but `isLateTemplateParsed()`is `true`
https://github.com/llvm/llvm-project/blob/main/clang/include/clang/AST/Decl.h#L2442
So, maybe we still need `Source->hasBody()` check here.
https://github.com/llvm/llvm-project/pull/227534
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits