clang-tidy pass on executable_semantics (#963)

This commit is contained in:
Jon Meow
2021-12-02 12:21:18 -08:00
committed by GitHub
parent d09822905e
commit 92903afbd5
12 changed files with 28 additions and 30 deletions
+3 -1
View File
@@ -5,6 +5,7 @@
#ifndef EXECUTABLE_SEMANTICS_AST_STATEMENT_H_
#define EXECUTABLE_SEMANTICS_AST_STATEMENT_H_
#include <utility>
#include <vector>
#include "common/ostream.h"
@@ -45,7 +46,8 @@ class Statement : public virtual AstNode {
class Block : public Statement {
public:
Block(SourceLocation source_loc, std::vector<Nonnull<Statement*>> statements)
: AstNode(AstNodeKind::Block, source_loc), statements_(statements) {}
: AstNode(AstNodeKind::Block, source_loc),
statements_(std::move(statements)) {}
static auto classof(const AstNode* node) -> bool {
return InheritsFromBlock(node->kind());