Run clang-tidy on the interpreter directory (#885)

`// NOLINT` is added on type aliases in stack.h and dictionary.h to allow lower_snake_case naming -- this didn't feel like a check worth disabling in spite of false positives.

Co-authored-by: Geoff Romer <gromer@google.com>
This commit is contained in:
Jon Meow
2021-10-15 08:54:53 -07:00
committed by GitHub
co-authored by Geoff Romer
parent 924259986a
commit 9007bfcb88
8 changed files with 33 additions and 22 deletions
+6 -2
View File
@@ -6,6 +6,7 @@
#define EXECUTABLE_SEMANTICS_INTERPRETER_FRAME_H_
#include <string>
#include <utility>
#include <vector>
#include "common/ostream.h"
@@ -31,10 +32,13 @@ struct Scope {
// A frame represents either a function call or a delimited continuation.
struct Frame {
Frame(const Frame&) = delete;
Frame& operator=(const Frame&) = delete;
auto operator=(const Frame&) -> Frame& = delete;
Frame(std::string n, Stack<Nonnull<Scope*>> s, Stack<Nonnull<Action*>> c)
: name(std::move(std::move(n))), scopes(s), todo(c), continuation() {}
: name(std::move(n)),
scopes(std::move(s)),
todo(std::move(c)),
continuation() {}
void Print(llvm::raw_ostream& out) const;
LLVM_DUMP_METHOD void Dump() const { Print(llvm::errs()); }