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
+2 -2
View File
@@ -59,7 +59,7 @@ class Value {
};
Value(const Value&) = delete;
Value& operator=(const Value&) = delete;
auto operator=(const Value&) -> Value& = delete;
void Print(llvm::raw_ostream& out) const;
LLVM_DUMP_METHOD void Dump() const { Print(llvm::errs()); }
@@ -277,7 +277,7 @@ class AlternativeValue : public Value {
class TupleValue : public Value {
public:
// An empty tuple, also known as the unit type.
static Nonnull<const TupleValue*> Empty() {
static auto Empty() -> Nonnull<const TupleValue*> {
static const TupleValue empty = TupleValue(std::vector<TupleElement>());
return Nonnull<const TupleValue*>(&empty);
}