From d9cb093989263b7e57a43d9ef18d88da7a77a784 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Fri, 6 Jul 2018 15:00:45 -0400 Subject: [PATCH] Run tools/format.sh --- BUILD.gn | 4 ++-- src/binding.cc | 2 +- src/deno.h | 1 + src/from_snapshot.cc | 2 +- src/main.cc | 2 +- src/snapshot_creator.cc | 4 ++-- tsconfig.json | 4 ++-- 7 files changed, 10 insertions(+), 9 deletions(-) diff --git a/BUILD.gn b/BUILD.gn index ad20e7a913..def162d42d 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -69,10 +69,10 @@ static_library("libdeno") { v8_source_set("deno_nosnapshot") { sources = [ "src/binding.cc", - "src/internal.h", + "src/deno.h", "src/file_util.cc", "src/file_util.h", - "src/deno.h", + "src/internal.h", ] deps = [ "third_party/v8:v8_monolith", diff --git a/src/binding.cc b/src/binding.cc index d8de138c15..0bbcf8b94b 100644 --- a/src/binding.cc +++ b/src/binding.cc @@ -28,8 +28,8 @@ IN THE SOFTWARE. #include "third_party/v8/include/v8.h" #include "third_party/v8/src/base/logging.h" -#include "internal.h" #include "deno.h" +#include "internal.h" namespace deno { diff --git a/src/deno.h b/src/deno.h index cd9ade42ff..605a764561 100644 --- a/src/deno.h +++ b/src/deno.h @@ -2,6 +2,7 @@ // All rights reserved. MIT License. #ifndef DENO_H_ #define DENO_H_ +#include // Neither Rust nor Go support calling directly into C++ functions, therefore // the public interface to libdeno is done in C. #ifdef __cplusplus diff --git a/src/from_snapshot.cc b/src/from_snapshot.cc index 5dd32025a3..3aa3bac770 100644 --- a/src/from_snapshot.cc +++ b/src/from_snapshot.cc @@ -8,8 +8,8 @@ #include "third_party/v8/include/v8.h" #include "third_party/v8/src/base/logging.h" -#include "internal.h" #include "deno.h" +#include "internal.h" #ifdef DENO_MOCK_RUNTIME #include "snapshot_mock_runtime.cc" diff --git a/src/main.cc b/src/main.cc index 0a6d76d34a..9596dbddf3 100644 --- a/src/main.cc +++ b/src/main.cc @@ -10,8 +10,8 @@ #include #endif -#include "flatbuffers/flatbuffers.h" #include "deno.h" +#include "flatbuffers/flatbuffers.h" #include "src/msg_generated.h" #include "third_party/v8/src/base/logging.h" diff --git a/src/snapshot_creator.cc b/src/snapshot_creator.cc index 3f4d8c4843..cb5caf304e 100644 --- a/src/snapshot_creator.cc +++ b/src/snapshot_creator.cc @@ -1,9 +1,9 @@ // Copyright 2018 Ryan Dahl // All rights reserved. MIT License. // Hint: --trace_serializer is a useful debugging flag. -#include "internal.h" -#include "file_util.h" #include "deno.h" +#include "file_util.h" +#include "internal.h" #include "third_party/v8/include/v8.h" #include "third_party/v8/src/base/logging.h" diff --git a/tsconfig.json b/tsconfig.json index 3ed7f63a47..441f233c28 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -13,6 +13,6 @@ "allowUnreachableCode": false, "experimentalDecorators": true }, - "include": [ "js/main.ts" ], - "exclude": [ "node_modules" ] + "include": ["js/main.ts"], + "exclude": ["node_modules"] }