================
@@ -86,6 +86,13 @@ bool doesDeclHaveStorage(const ValueDecl *D) {
return !D->getType()->isReferenceType();
}
+OriginManager::OriginManager(ASTContext &AST, const Decl *D) : AST(AST) {
+ if (const auto *MD = llvm::dyn_cast_or_null<CXXMethodDecl>(D);
+ MD && MD->isInstance()) {
+ ThisOrigins = buildListForType(MD->getThisType(), MD);
+ }
----------------
usx95 wrote:
nit: remove braces
https://github.com/llvm/llvm-project/pull/176703
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits