Skip to content

Commit 546dc22

Browse files
[clang-repl] Minor cleanups in Value.cpp (NFC) (#87066)
1 parent 631ae59 commit 546dc22

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

clang/lib/Interpreter/Value.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===--- Interpreter.h - Incremental Compiation and Execution---*- C++ -*-===//
1+
//===------------ Value.cpp - Definition of interpreter value -------------===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.
@@ -22,8 +22,6 @@
2222
#include <cstdint>
2323
#include <utility>
2424

25-
using namespace clang;
26-
2725
namespace {
2826

2927
// This is internal buffer maintained by Value, used to hold temporaries.
@@ -61,7 +59,7 @@ class ValueStorage {
6159
void Release() {
6260
assert(RefCnt > 0 && "Can't release if reference count is already zero");
6361
if (--RefCnt == 0) {
64-
// We hace a non-trivial dtor.
62+
// We have a non-trivial dtor.
6563
if (Dtor && IsAlive()) {
6664
assert(Elements && "We at least should have 1 element in Value");
6765
size_t Stride = AllocSize / Elements;
@@ -97,6 +95,8 @@ class ValueStorage {
9795
};
9896
} // namespace
9997

98+
namespace clang {
99+
100100
static Value::Kind ConvertQualTypeToKind(const ASTContext &Ctx, QualType QT) {
101101
if (Ctx.hasSameType(QT, Ctx.VoidTy))
102102
return Value::K_Void;
@@ -265,3 +265,5 @@ void Value::print(llvm::raw_ostream &Out) const {
265265
assert(OpaqueType != nullptr && "Can't print default Value");
266266
Out << "Not implement yet.\n";
267267
}
268+
269+
} // namespace clang

0 commit comments

Comments
 (0)