Skip to content

Commit e682895

Browse files
committed
Fix clang format issues.
1 parent 215160a commit e682895

File tree

4 files changed

+8
-14
lines changed

4 files changed

+8
-14
lines changed

lldb/include/lldb/ValueObject/DILAST.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ class BooleanLiteralNode : public ASTNode {
258258
class CastNode : public ASTNode {
259259
public:
260260
CastNode(uint32_t location, CompilerType type, ASTNodeUP operand,
261-
CastKind kind)
261+
CastKind kind)
262262
: ASTNode(location, NodeKind::eCastNode), m_type(type),
263263
m_operand(std::move(operand)), m_cast_kind(kind) {}
264264

@@ -301,8 +301,7 @@ class Visitor {
301301
Visit(const FloatLiteralNode *node) = 0;
302302
virtual llvm::Expected<lldb::ValueObjectSP>
303303
Visit(const BooleanLiteralNode *node) = 0;
304-
virtual llvm::Expected<lldb::ValueObjectSP>
305-
Visit(const CastNode *node) = 0;
304+
virtual llvm::Expected<lldb::ValueObjectSP> Visit(const CastNode *node) = 0;
306305
};
307306

308307
} // namespace lldb_private::dil

lldb/include/lldb/ValueObject/DILEval.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ class Interpreter : Visitor {
6060
Visit(const FloatLiteralNode *node) override;
6161
llvm::Expected<lldb::ValueObjectSP>
6262
Visit(const BooleanLiteralNode *node) override;
63-
llvm::Expected<lldb::ValueObjectSP>
64-
Visit(const CastNode *node) override;
63+
llvm::Expected<lldb::ValueObjectSP> Visit(const CastNode *node) override;
6564

6665
/// Perform usual unary conversions on a value. At the moment this
6766
/// includes array-to-pointer and integral promotion for eligible types.

lldb/source/ValueObject/DILEval.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -740,8 +740,7 @@ Interpreter::Visit(const BooleanLiteralNode *node) {
740740
return ValueObject::CreateValueObjectFromBool(m_target, value, "result");
741741
}
742742

743-
llvm::Expected<lldb::ValueObjectSP>
744-
Interpreter::Visit(const CastNode *node) {
743+
llvm::Expected<lldb::ValueObjectSP> Interpreter::Visit(const CastNode *node) {
745744
auto operand_or_err = Evaluate(node->GetOperand());
746745
if (!operand_or_err)
747746
return operand_or_err;
@@ -750,9 +749,7 @@ Interpreter::Visit(const CastNode *node) {
750749
// Don't actually do the cast for now -- that code will be added later.
751750
// For now just return an error message.
752751
return llvm::make_error<DILDiagnosticError>(
753-
m_expr,
754-
"Type casting is not supported here.",
755-
node->GetLocation());
752+
m_expr, "Type casting is not supported here.", node->GetLocation());
756753
}
757754

758755
} // namespace lldb_private::dil

lldb/source/ValueObject/DILParser.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,10 @@
1212
//===----------------------------------------------------------------------===//
1313

1414
#include "lldb/ValueObject/DILParser.h"
15+
#include "lldb/Host/common/DiagnosticsRendering.h"
1516
#include "lldb/Symbol/CompileUnit.h"
1617
#include "lldb/Target/ExecutionContextScope.h"
1718
#include "lldb/Target/LanguageRuntime.h"
18-
#include "lldb/Host/common/DiagnosticsRendering.h"
19-
#include "lldb/Target/ExecutionContextScope.h"
2019
#include "lldb/ValueObject/DILAST.h"
2120
#include "lldb/ValueObject/DILEval.h"
2221
#include "llvm/ADT/StringRef.h"
@@ -124,8 +123,8 @@ ASTNodeUP DILParser::ParseCastExpression() {
124123
m_dil_lexer.Advance();
125124
auto rhs = ParseCastExpression();
126125

127-
return std::make_unique<CastNode>(
128-
loc, type_id.value(), std::move(rhs), CastKind::eNone);
126+
return std::make_unique<CastNode>(loc, type_id.value(), std::move(rhs),
127+
CastKind::eNone);
129128
}
130129

131130
// Failed to parse the contents of the parentheses as a type declaration.

0 commit comments

Comments
 (0)