Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2064)

Unified Diff: runtime/vm/ast_printer_test.cc

Issue 2481873005: clang-format runtime/vm (Closed)
Patch Set: Merge Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/ast_printer.cc ('k') | runtime/vm/ast_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/ast_printer_test.cc
diff --git a/runtime/vm/ast_printer_test.cc b/runtime/vm/ast_printer_test.cc
index f3f7fd67cc2af5a9fd2e291adbc57a4fb54b2016..5ea05a40fdc6839cc00d5bf51dbdc7ef4cf4ad95 100644
--- a/runtime/vm/ast_printer_test.cc
+++ b/runtime/vm/ast_printer_test.cc
@@ -16,11 +16,9 @@ namespace dart {
TEST_CASE(AstPrinter) {
const TokenPosition kPos = TokenPosition::kNoSource;
- LocalVariable* v =
- new LocalVariable(kPos,
- kPos,
- String::ZoneHandle(Symbols::New(thread, "wurscht")),
- Type::ZoneHandle(Type::DynamicType()));
+ LocalVariable* v = new LocalVariable(
+ kPos, kPos, String::ZoneHandle(Symbols::New(thread, "wurscht")),
+ Type::ZoneHandle(Type::DynamicType()));
v->set_index(5);
AstPrinter ast_printer;
LoadLocalNode* ll = new LoadLocalNode(kPos, v);
@@ -33,10 +31,9 @@ TEST_CASE(AstPrinter) {
ast_printer.PrintNode(new ReturnNode(kPos));
- ast_printer.PrintNode(new BinaryOpNode(kPos,
- Token::kADD,
- new LiteralNode(kPos, Smi::ZoneHandle(Smi::New(3))),
- new LiteralNode(kPos, Smi::ZoneHandle(Smi::New(5)))));
+ ast_printer.PrintNode(new BinaryOpNode(
+ kPos, Token::kADD, new LiteralNode(kPos, Smi::ZoneHandle(Smi::New(3))),
+ new LiteralNode(kPos, Smi::ZoneHandle(Smi::New(5)))));
ast_printer.PrintNode(new UnaryOpNode(kPos, Token::kNEGATE, ll));
}
« no previous file with comments | « runtime/vm/ast_printer.cc ('k') | runtime/vm/ast_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698