This is an automated email from the ASF dual-hosted git repository.

maskit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new a0cd89b97e Require new line at EOF (#9930)
a0cd89b97e is described below

commit a0cd89b97e29c28502b6aa199bede645146e785b
Author: Masakazu Kitajo <[email protected]>
AuthorDate: Thu Jun 29 06:55:41 2023 +0900

    Require new line at EOF (#9930)
    
    * Require new line at EOF
    
    * clang-format
---
 .clang-format                                      | 2 +-
 include/shared/rpc/RPCClient.h                     | 2 +-
 mgmt/rpc/handlers/common/ErrorUtils.h              | 2 +-
 mgmt/rpc/handlers/common/Utils.h                   | 2 +-
 mgmt/rpc/handlers/common/convert.h                 | 2 +-
 mgmt/rpc/handlers/config/Configuration.h           | 2 +-
 mgmt/rpc/server/CommBase.cc                        | 2 +-
 mgmt/rpc/server/CommBase.h                         | 2 +-
 plugins/experimental/slice/prefetch.h              | 2 +-
 plugins/server_push_preload/server_push_preload.cc | 2 +-
 src/traffic_ctl/PrintUtils.h                       | 2 +-
 src/traffic_server/RpcAdminPubHandlers.h           | 2 +-
 tests/tools/plugins/cert_update.cc                 | 2 +-
 13 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/.clang-format b/.clang-format
index 7931e13cf2..d6431535bf 100644
--- a/.clang-format
+++ b/.clang-format
@@ -127,7 +127,7 @@ IndentRequiresClause: true
 IndentWidth:     2
 IndentWrappedFunctionNames: false
 InsertBraces:    false
-InsertNewlineAtEOF: false
+InsertNewlineAtEOF: true
 InsertTrailingCommas: None
 IntegerLiteralSeparator:
   Binary:          0
diff --git a/include/shared/rpc/RPCClient.h b/include/shared/rpc/RPCClient.h
index 5cdfea8431..f2d7240428 100644
--- a/include/shared/rpc/RPCClient.h
+++ b/include/shared/rpc/RPCClient.h
@@ -104,4 +104,4 @@ public:
 private:
   IPCSocketClient _client;
 };
-} // namespace shared::rpc
\ No newline at end of file
+} // namespace shared::rpc
diff --git a/mgmt/rpc/handlers/common/ErrorUtils.h 
b/mgmt/rpc/handlers/common/ErrorUtils.h
index 4f3242a393..6b5373c8dd 100644
--- a/mgmt/rpc/handlers/common/ErrorUtils.h
+++ b/mgmt/rpc/handlers/common/ErrorUtils.h
@@ -62,4 +62,4 @@ make_errata(int code, std::string_view text)
 {
   return ts::Errata{}.push(ERRATA_DEFAULT_ID, code, text);
 }
-} // namespace rpc::handlers::errors
\ No newline at end of file
+} // namespace rpc::handlers::errors
diff --git a/mgmt/rpc/handlers/common/Utils.h b/mgmt/rpc/handlers/common/Utils.h
index 309f5155f8..b9070d1a9f 100644
--- a/mgmt/rpc/handlers/common/Utils.h
+++ b/mgmt/rpc/handlers/common/Utils.h
@@ -38,4 +38,4 @@ is_true_flag(YAML::Node const &node)
   }
   return isTrue;
 }
-} // namespace rpc::handlers::utils
\ No newline at end of file
+} // namespace rpc::handlers::utils
diff --git a/mgmt/rpc/handlers/common/convert.h 
b/mgmt/rpc/handlers/common/convert.h
index d74ec0bee1..2b98f40cf2 100644
--- a/mgmt/rpc/handlers/common/convert.h
+++ b/mgmt/rpc/handlers/common/convert.h
@@ -176,4 +176,4 @@ template <> struct convert<RecRecord> {
   }
 };
 
-} // namespace YAML
\ No newline at end of file
+} // namespace YAML
diff --git a/mgmt/rpc/handlers/config/Configuration.h 
b/mgmt/rpc/handlers/config/Configuration.h
index 4a3f2f2ce2..957d65e1eb 100644
--- a/mgmt/rpc/handlers/config/Configuration.h
+++ b/mgmt/rpc/handlers/config/Configuration.h
@@ -27,4 +27,4 @@ namespace rpc::handlers::config
 ts::Rv<YAML::Node> set_config_records(std::string_view const &id, YAML::Node 
const &params);
 ts::Rv<YAML::Node> reload_config(std::string_view const &id, YAML::Node const 
&params);
 
-} // namespace rpc::handlers::config
\ No newline at end of file
+} // namespace rpc::handlers::config
diff --git a/mgmt/rpc/server/CommBase.cc b/mgmt/rpc/server/CommBase.cc
index bade21469a..cc51c8f59f 100644
--- a/mgmt/rpc/server/CommBase.cc
+++ b/mgmt/rpc/server/CommBase.cc
@@ -60,4 +60,4 @@ make_error_code(rpc::comm::InternalError e)
   return {static_cast<int>(e), commInternalErrorCategory};
 }
 
-} // namespace rpc::comm
\ No newline at end of file
+} // namespace rpc::comm
diff --git a/mgmt/rpc/server/CommBase.h b/mgmt/rpc/server/CommBase.h
index 5646477b32..d919970391 100644
--- a/mgmt/rpc/server/CommBase.h
+++ b/mgmt/rpc/server/CommBase.h
@@ -44,4 +44,4 @@ namespace std
 {
 template <> struct is_error_code_enum<rpc::comm::InternalError> : true_type {
 };
-} // namespace std
\ No newline at end of file
+} // namespace std
diff --git a/plugins/experimental/slice/prefetch.h 
b/plugins/experimental/slice/prefetch.h
index e5d1edfc24..02f9f1a067 100644
--- a/plugins/experimental/slice/prefetch.h
+++ b/plugins/experimental/slice/prefetch.h
@@ -44,4 +44,4 @@ struct BgBlockFetch {
   Stage m_stream;
   int m_blocknum;
   TSCont m_cont = nullptr;
-};
\ No newline at end of file
+};
diff --git a/plugins/server_push_preload/server_push_preload.cc 
b/plugins/server_push_preload/server_push_preload.cc
index fcfa143f8a..b869c242da 100644
--- a/plugins/server_push_preload/server_push_preload.cc
+++ b/plugins/server_push_preload/server_push_preload.cc
@@ -177,4 +177,4 @@ TSRemapNewInstance(int argc ATSCPPAPI_UNUSED, char *argv[] 
ATSCPPAPI_UNUSED, voi
   TSDebug(PLUGIN_NAME, "New Instance");
   remapPlugin = new ServerPushRemap(instance_handle);
   return TS_SUCCESS;
-}
\ No newline at end of file
+}
diff --git a/src/traffic_ctl/PrintUtils.h b/src/traffic_ctl/PrintUtils.h
index 44ab34e457..c5991fe138 100644
--- a/src/traffic_ctl/PrintUtils.h
+++ b/src/traffic_ctl/PrintUtils.h
@@ -91,4 +91,4 @@ rec_sourceof(int rec_source)
   default:
     return "unknown";
   }
-}
\ No newline at end of file
+}
diff --git a/src/traffic_server/RpcAdminPubHandlers.h 
b/src/traffic_server/RpcAdminPubHandlers.h
index ff29abcdf5..cbbee7791b 100644
--- a/src/traffic_server/RpcAdminPubHandlers.h
+++ b/src/traffic_server/RpcAdminPubHandlers.h
@@ -24,4 +24,4 @@ namespace rpc::admin
 {
 /// Initialize and register all public handler that will be exposed to the 
JSON RPC server.
 void register_admin_jsonrpc_handlers();
-} // namespace rpc::admin
\ No newline at end of file
+} // namespace rpc::admin
diff --git a/tests/tools/plugins/cert_update.cc 
b/tests/tools/plugins/cert_update.cc
index 53eeacd0d1..3b495a7a6e 100644
--- a/tests/tools/plugins/cert_update.cc
+++ b/tests/tools/plugins/cert_update.cc
@@ -83,4 +83,4 @@ TSPluginInit(int argc, const char *argv[])
   }
   TSDebug(PLUGIN_NAME, "Initialized.");
   TSLifecycleHookAdd(TS_LIFECYCLE_MSG_HOOK, TSContCreate(CB_cert_update, 
nullptr));
-}
\ No newline at end of file
+}

Reply via email to