| 19 | |
| 20 | namespace clang::insights::asthelpers { |
| 21 | DeclStmt* _mkDeclStmt(std::span<Decl*> decls) |
| 22 | { |
| 23 | const auto& ctx = GetGlobalAST(); |
| 24 | |
| 25 | auto dgRef = DeclGroupRef::Create(const_cast<ASTContext&>(ctx), decls.data(), decls.size()); |
| 26 | |
| 27 | return new(ctx) DeclStmt(dgRef, {}, {}); |
| 28 | } |
| 29 | //----------------------------------------------------------------------------- |
| 30 | |
| 31 | BinaryOperator* Assign(const VarDecl* var, Expr* assignExpr) |