diff --git a/.clang-format b/.clang-format index 0f62465b..812ba70c 100644 --- a/.clang-format +++ b/.clang-format @@ -75,6 +75,7 @@ IndentCaseLabels: true IndentPPDirectives: None IndentWidth: 4 IndentWrappedFunctionNames: false +InsertNewlineAtEOF: true JavaScriptQuotes: Leave JavaScriptWrapImports: true KeepEmptyLinesAtTheStartOfBlocks: false diff --git a/drogon_ctl/create_controller.cc b/drogon_ctl/create_controller.cc index fb4d6acb..4e23af11 100644 --- a/drogon_ctl/create_controller.cc +++ b/drogon_ctl/create_controller.cc @@ -468,4 +468,4 @@ void create_controller::createARestfulController(const std::string &className, << std::endl; std::cout << "File name: " << ctlName << ".h and " << ctlName << ".cc" << std::endl; -} \ No newline at end of file +} diff --git a/examples/benchmark/JsonCtrl.cc b/examples/benchmark/JsonCtrl.cc index ef3ed2d3..fcf5fc51 100644 --- a/examples/benchmark/JsonCtrl.cc +++ b/examples/benchmark/JsonCtrl.cc @@ -8,4 +8,4 @@ void JsonCtrl::asyncHandleHttpRequest( ret["message"] = "Hello, World!"; auto resp = HttpResponse::newHttpJsonResponse(ret); callback(resp); -} \ No newline at end of file +} diff --git a/examples/file_upload/file_upload.cc b/examples/file_upload/file_upload.cc index 0fa40767..8ed24141 100644 --- a/examples/file_upload/file_upload.cc +++ b/examples/file_upload/file_upload.cc @@ -43,4 +43,4 @@ int main() .setUploadPath("./uploads") .addListener("127.0.0.1", 8848) .run(); -} \ No newline at end of file +} diff --git a/examples/helloworld/HelloController.cc b/examples/helloworld/HelloController.cc index a089e8e5..9c7f7bef 100644 --- a/examples/helloworld/HelloController.cc +++ b/examples/helloworld/HelloController.cc @@ -37,4 +37,4 @@ class SayHello : public HttpController "Hi there, this is another hello from the SayHello Controller"); callback(resp); } -}; \ No newline at end of file +}; diff --git a/examples/helloworld/HelloViewController.cc b/examples/helloworld/HelloViewController.cc index 75326730..e1b91888 100644 --- a/examples/helloworld/HelloViewController.cc +++ b/examples/helloworld/HelloViewController.cc @@ -26,4 +26,4 @@ class HelloViewController : public HttpSimpleController auto resp = HttpResponse::newHttpViewResponse("HelloView", data); callback(resp); } -}; \ No newline at end of file +}; diff --git a/examples/jsonstore/main.cc b/examples/jsonstore/main.cc index 0cd50256..61babccf 100644 --- a/examples/jsonstore/main.cc +++ b/examples/jsonstore/main.cc @@ -211,4 +211,4 @@ class JsonStore : public HttpController int main() { app().addListener("127.0.0.1", 8848).run(); -} \ No newline at end of file +} diff --git a/examples/login_session/main.cc b/examples/login_session/main.cc index c457ea9f..f8c8d273 100644 --- a/examples/login_session/main.cc +++ b/examples/login_session/main.cc @@ -65,4 +65,4 @@ int main() .enableSession(24h) .addListener("127.0.0.1", 8848) .run(); -} \ No newline at end of file +} diff --git a/examples/redis_cache/DateFuncs.h b/examples/redis_cache/DateFuncs.h index cd5f59e4..4968e23c 100644 --- a/examples/redis_cache/DateFuncs.h +++ b/examples/redis_cache/DateFuncs.h @@ -11,4 +11,4 @@ template <> inline std::string toString(const trantor::Date &date) { return std::to_string(date.microSecondsSinceEpoch()); -} \ No newline at end of file +} diff --git a/examples/redis_cache/filters/TimeFilter.cc b/examples/redis_cache/filters/TimeFilter.cc index 2c29a66d..915f082f 100644 --- a/examples/redis_cache/filters/TimeFilter.cc +++ b/examples/redis_cache/filters/TimeFilter.cc @@ -70,4 +70,4 @@ void TimeFilter::doFilter(const HttpRequestPtr &req, co_return; } }); -} \ No newline at end of file +} diff --git a/examples/simple_reverse_proxy/plugins/SimpleReverseProxy.cc b/examples/simple_reverse_proxy/plugins/SimpleReverseProxy.cc index 26ca89bf..7f890e08 100644 --- a/examples/simple_reverse_proxy/plugins/SimpleReverseProxy.cc +++ b/examples/simple_reverse_proxy/plugins/SimpleReverseProxy.cc @@ -97,4 +97,4 @@ void SimpleReverseProxy::preRouting(const HttpRequestPtr &req, callback(errResp); } }); -} \ No newline at end of file +} diff --git a/examples/websocket_server/WebSocketServer.cc b/examples/websocket_server/WebSocketServer.cc index d497deed..ea48dad1 100644 --- a/examples/websocket_server/WebSocketServer.cc +++ b/examples/websocket_server/WebSocketServer.cc @@ -70,4 +70,4 @@ void WebSocketChat::handleNewConnection(const HttpRequestPtr &req, int main() { app().addListener("127.0.0.1", 8848).run(); -} \ No newline at end of file +} diff --git a/lib/inc/drogon/plugins/Redirector.h b/lib/inc/drogon/plugins/Redirector.h index 4bbea15d..3b8f29b6 100644 --- a/lib/inc/drogon/plugins/Redirector.h +++ b/lib/inc/drogon/plugins/Redirector.h @@ -116,4 +116,4 @@ class DROGON_EXPORT Redirector : public drogon::Plugin, }; } // namespace plugin -} // namespace drogon \ No newline at end of file +} // namespace drogon diff --git a/lib/inc/drogon/utils/OStringStream.h b/lib/inc/drogon/utils/OStringStream.h index de9db3b2..ac8b4ec1 100644 --- a/lib/inc/drogon/utils/OStringStream.h +++ b/lib/inc/drogon/utils/OStringStream.h @@ -144,4 +144,4 @@ class OStringStream private: std::string buffer_; }; -} // namespace drogon \ No newline at end of file +} // namespace drogon diff --git a/lib/inc/drogon/utils/monitoring.h b/lib/inc/drogon/utils/monitoring.h index cfb81396..2060d747 100644 --- a/lib/inc/drogon/utils/monitoring.h +++ b/lib/inc/drogon/utils/monitoring.h @@ -15,4 +15,4 @@ #include #include #include -#include \ No newline at end of file +#include diff --git a/lib/inc/drogon/utils/monitoring/Collector.h b/lib/inc/drogon/utils/monitoring/Collector.h index c8293722..b46bcefd 100644 --- a/lib/inc/drogon/utils/monitoring/Collector.h +++ b/lib/inc/drogon/utils/monitoring/Collector.h @@ -129,4 +129,4 @@ class Collector : public CollectorBase mutable std::mutex mutex_; }; } // namespace monitoring -} // namespace drogon \ No newline at end of file +} // namespace drogon diff --git a/lib/inc/drogon/utils/monitoring/Gauge.h b/lib/inc/drogon/utils/monitoring/Gauge.h index f060f927..99de3df8 100644 --- a/lib/inc/drogon/utils/monitoring/Gauge.h +++ b/lib/inc/drogon/utils/monitoring/Gauge.h @@ -106,4 +106,4 @@ class Gauge : public Metric trantor::Date timestamp_{0}; }; } // namespace monitoring -} // namespace drogon \ No newline at end of file +} // namespace drogon diff --git a/lib/inc/drogon/utils/monitoring/Metric.h b/lib/inc/drogon/utils/monitoring/Metric.h index 92c16736..6987976e 100644 --- a/lib/inc/drogon/utils/monitoring/Metric.h +++ b/lib/inc/drogon/utils/monitoring/Metric.h @@ -74,4 +74,4 @@ class Metric : public std::enable_shared_from_this using MetricPtr = std::shared_ptr; } // namespace monitoring -} // namespace drogon \ No newline at end of file +} // namespace drogon diff --git a/lib/inc/drogon/utils/monitoring/Registry.h b/lib/inc/drogon/utils/monitoring/Registry.h index fde6e5a0..1026b448 100644 --- a/lib/inc/drogon/utils/monitoring/Registry.h +++ b/lib/inc/drogon/utils/monitoring/Registry.h @@ -32,4 +32,4 @@ class Registry const std::shared_ptr &collector) = 0; }; } // namespace monitoring -} // namespace drogon \ No newline at end of file +} // namespace drogon diff --git a/lib/inc/drogon/utils/monitoring/Sample.h b/lib/inc/drogon/utils/monitoring/Sample.h index b86e7c92..27302f4a 100644 --- a/lib/inc/drogon/utils/monitoring/Sample.h +++ b/lib/inc/drogon/utils/monitoring/Sample.h @@ -32,4 +32,4 @@ struct Sample std::vector> exLabels; }; } // namespace monitoring -} // namespace drogon \ No newline at end of file +} // namespace drogon diff --git a/lib/inc/drogon/utils/monitoring/StopWatch.h b/lib/inc/drogon/utils/monitoring/StopWatch.h index 9c4488a3..a0a2208f 100644 --- a/lib/inc/drogon/utils/monitoring/StopWatch.h +++ b/lib/inc/drogon/utils/monitoring/StopWatch.h @@ -72,4 +72,4 @@ class LifeTimeWatch StopWatch stopWatch_; std::function callback_; }; -} // namespace drogon \ No newline at end of file +} // namespace drogon diff --git a/lib/src/ConfigAdapter.h b/lib/src/ConfigAdapter.h index c9951c03..28cd8983 100644 --- a/lib/src/ConfigAdapter.h +++ b/lib/src/ConfigAdapter.h @@ -18,4 +18,4 @@ class ConfigAdapter using ConfigAdapterPtr = std::shared_ptr; -} // namespace drogon \ No newline at end of file +} // namespace drogon diff --git a/lib/src/ConfigAdapterManager.cc b/lib/src/ConfigAdapterManager.cc index 7b89f003..dfbe9374 100644 --- a/lib/src/ConfigAdapterManager.cc +++ b/lib/src/ConfigAdapterManager.cc @@ -37,4 +37,4 @@ ConfigAdapterManager::ConfigAdapterManager() { REGISTER_CONFIG_ADAPTER(JsonConfigAdapter); REGISTER_CONFIG_ADAPTER(YamlConfigAdapter); -} \ No newline at end of file +} diff --git a/lib/src/ConfigAdapterManager.h b/lib/src/ConfigAdapterManager.h index 89a81144..7249c8fe 100644 --- a/lib/src/ConfigAdapterManager.h +++ b/lib/src/ConfigAdapterManager.h @@ -16,4 +16,4 @@ class ConfigAdapterManager ConfigAdapterManager(); std::map adapters_; }; -} // namespace drogon \ No newline at end of file +} // namespace drogon diff --git a/lib/src/DbClientManagerSkipped.cc b/lib/src/DbClientManagerSkipped.cc index 2c196430..ea2293a5 100644 --- a/lib/src/DbClientManagerSkipped.cc +++ b/lib/src/DbClientManagerSkipped.cc @@ -55,4 +55,4 @@ bool DbClientManager::areAllDbClientsAvailable() const noexcept DbClientManager::~DbClientManager() { -} \ No newline at end of file +} diff --git a/lib/src/FixedWindowRateLimiter.cc b/lib/src/FixedWindowRateLimiter.cc index df02afdc..bd75075e 100644 --- a/lib/src/FixedWindowRateLimiter.cc +++ b/lib/src/FixedWindowRateLimiter.cc @@ -29,4 +29,4 @@ bool FixedWindowRateLimiter::isAllowed() return true; } return false; -} \ No newline at end of file +} diff --git a/lib/src/GlobalFilters.cc b/lib/src/GlobalFilters.cc index 771c6cda..da41853b 100644 --- a/lib/src/GlobalFilters.cc +++ b/lib/src/GlobalFilters.cc @@ -105,4 +105,4 @@ void GlobalFilters::initAndStart(const Json::Value &config) void GlobalFilters::shutdown() { filters_.clear(); -} \ No newline at end of file +} diff --git a/lib/src/Histogram.cc b/lib/src/Histogram.cc index a62efdad..d68469ae 100644 --- a/lib/src/Histogram.cc +++ b/lib/src/Histogram.cc @@ -77,4 +77,4 @@ std::vector Histogram::collect() const countSample.value = totalCount; samples.emplace_back(std::move(countSample)); return samples; -} \ No newline at end of file +} diff --git a/lib/src/HttpBinder.cc b/lib/src/HttpBinder.cc index dd120983..eab1f8b1 100644 --- a/lib/src/HttpBinder.cc +++ b/lib/src/HttpBinder.cc @@ -26,4 +26,4 @@ void handleException(const std::exception &e, app().getExceptionHandler()(e, req, std::move(callback)); } } // namespace internal -} // namespace drogon \ No newline at end of file +} // namespace drogon diff --git a/lib/src/HttpClientImpl.cc b/lib/src/HttpClientImpl.cc index 814b30e5..60054630 100644 --- a/lib/src/HttpClientImpl.cc +++ b/lib/src/HttpClientImpl.cc @@ -730,4 +730,4 @@ void HttpClientImpl::addSSLConfigs( { sslConfCmds_.push_back(cmd); } -} \ No newline at end of file +} diff --git a/lib/src/HttpViewData.cc b/lib/src/HttpViewData.cc index d618e0e6..0aa41d05 100644 --- a/lib/src/HttpViewData.cc +++ b/lib/src/HttpViewData.cc @@ -44,4 +44,4 @@ std::string HttpViewData::htmlTranslate(const char *str, size_t length) ++str; } return ret; -} \ No newline at end of file +} diff --git a/lib/src/JsonConfigAdapter.h b/lib/src/JsonConfigAdapter.h index 6a27f0f7..1374cac8 100644 --- a/lib/src/JsonConfigAdapter.h +++ b/lib/src/JsonConfigAdapter.h @@ -12,4 +12,4 @@ class JsonConfigAdapter : public ConfigAdapter noexcept(false) override; std::vector getExtensions() const override; }; -} // namespace drogon \ No newline at end of file +} // namespace drogon diff --git a/lib/src/PluginsManager.cc b/lib/src/PluginsManager.cc index 30beebf9..5b0eb546 100644 --- a/lib/src/PluginsManager.cc +++ b/lib/src/PluginsManager.cc @@ -118,4 +118,4 @@ std::shared_ptr PluginsManager::getSharedPlugin( return iter->second; } return nullptr; -} \ No newline at end of file +} diff --git a/lib/src/RedisClientManagerSkipped.cc b/lib/src/RedisClientManagerSkipped.cc index 924d4d39..e39e3e57 100644 --- a/lib/src/RedisClientManagerSkipped.cc +++ b/lib/src/RedisClientManagerSkipped.cc @@ -51,4 +51,4 @@ void RedisClientManager::createRedisClient(const std::string & /*name*/, RedisClientManager::~RedisClientManager() { -} \ No newline at end of file +} diff --git a/lib/src/RedisResultSkipped.cc b/lib/src/RedisResultSkipped.cc index c3ec1007..ec055089 100644 --- a/lib/src/RedisResultSkipped.cc +++ b/lib/src/RedisResultSkipped.cc @@ -69,4 +69,4 @@ bool RedisResult::isNil() const noexcept abort(); } } // namespace nosql -} // namespace drogon \ No newline at end of file +} // namespace drogon diff --git a/lib/src/SlidingWindowRateLimiter.h b/lib/src/SlidingWindowRateLimiter.h index ac3045f9..816fee66 100644 --- a/lib/src/SlidingWindowRateLimiter.h +++ b/lib/src/SlidingWindowRateLimiter.h @@ -20,4 +20,4 @@ class SlidingWindowRateLimiter : public RateLimiter std::chrono::steady_clock::time_point lastTime_; std::chrono::duration timeUnit_; }; -} // namespace drogon \ No newline at end of file +} // namespace drogon diff --git a/lib/src/TaskTimeoutFlag.cc b/lib/src/TaskTimeoutFlag.cc index b8eba8a2..61439595 100644 --- a/lib/src/TaskTimeoutFlag.cc +++ b/lib/src/TaskTimeoutFlag.cc @@ -38,4 +38,4 @@ void TaskTimeoutFlag::runTimer() bool TaskTimeoutFlag::done() { return isDone_.exchange(true); -} \ No newline at end of file +} diff --git a/lib/src/TaskTimeoutFlag.h b/lib/src/TaskTimeoutFlag.h index e466ddb9..8a17f3c8 100644 --- a/lib/src/TaskTimeoutFlag.h +++ b/lib/src/TaskTimeoutFlag.h @@ -36,4 +36,4 @@ class TaskTimeoutFlag : public trantor::NonCopyable, std::chrono::duration timeout_; std::function timeoutFunc_; }; -} // namespace drogon \ No newline at end of file +} // namespace drogon diff --git a/lib/src/YamlConfigAdapter.h b/lib/src/YamlConfigAdapter.h index 6ca7f50a..ef1b2f50 100644 --- a/lib/src/YamlConfigAdapter.h +++ b/lib/src/YamlConfigAdapter.h @@ -12,4 +12,4 @@ class YamlConfigAdapter : public ConfigAdapter noexcept(false) override; std::vector getExtensions() const override; }; -} // namespace drogon \ No newline at end of file +} // namespace drogon diff --git a/lib/tests/integration_test/server/DigestAuthFilter.cc b/lib/tests/integration_test/server/DigestAuthFilter.cc index aba0dca2..1537dccf 100644 --- a/lib/tests/integration_test/server/DigestAuthFilter.cc +++ b/lib/tests/integration_test/server/DigestAuthFilter.cc @@ -214,4 +214,4 @@ void DigestAuthFilter::doFilter(const HttpRequestPtr &req, "\", opaque=\"" + opaque + "\""); cb(resp); return; -} \ No newline at end of file +} diff --git a/lib/tests/integration_test/server/DigestAuthFilter.h b/lib/tests/integration_test/server/DigestAuthFilter.h index 03df6349..bbb2c6dd 100644 --- a/lib/tests/integration_test/server/DigestAuthFilter.h +++ b/lib/tests/integration_test/server/DigestAuthFilter.h @@ -30,4 +30,4 @@ class DigestAuthFilter : public drogon::HttpFilter virtual void doFilter(const HttpRequestPtr &req, FilterCallback &&cb, FilterChainCallback &&ccb) override; -}; \ No newline at end of file +}; diff --git a/lib/tests/integration_test/server/ForwardCtrl.cc b/lib/tests/integration_test/server/ForwardCtrl.cc index 9dba50fe..7a3a2b4e 100644 --- a/lib/tests/integration_test/server/ForwardCtrl.cc +++ b/lib/tests/integration_test/server/ForwardCtrl.cc @@ -11,4 +11,4 @@ void ForwardCtrl::asyncHandleHttpRequest( callback(resp); }, "https://api.github.com"); -} \ No newline at end of file +} diff --git a/lib/tests/integration_test/server/MethodTest.cc b/lib/tests/integration_test/server/MethodTest.cc index 25af3639..22dcbfaa 100644 --- a/lib/tests/integration_test/server/MethodTest.cc +++ b/lib/tests/integration_test/server/MethodTest.cc @@ -53,4 +53,4 @@ void MethodTest::postRegex( { LOG_DEBUG << regStr; makePostRespose(callback); -} \ No newline at end of file +} diff --git a/lib/tests/integration_test/server/TimeFilter.cc b/lib/tests/integration_test/server/TimeFilter.cc index 5a4555d3..51b719e2 100644 --- a/lib/tests/integration_test/server/TimeFilter.cc +++ b/lib/tests/integration_test/server/TimeFilter.cc @@ -45,4 +45,4 @@ void TimeFilter::doFilter(const HttpRequestPtr &req, LOG_TRACE << "first visit,insert visitDate"; req->session()->insert(VDate, now); ccb(); -} \ No newline at end of file +} diff --git a/lib/tests/integration_test/server/api_v1_ApiTest.cc b/lib/tests/integration_test/server/api_v1_ApiTest.cc index e52fa9f4..aa6b5734 100644 --- a/lib/tests/integration_test/server/api_v1_ApiTest.cc +++ b/lib/tests/integration_test/server/api_v1_ApiTest.cc @@ -526,4 +526,4 @@ void ApiTest::echoBody(const HttpRequestPtr &req, auto resp = HttpResponse::newHttpResponse(); resp->setBody(std::string(req->body())); callback(resp); -} \ No newline at end of file +} diff --git a/lib/tests/unittests/ClassNameTest.cc b/lib/tests/unittests/ClassNameTest.cc index 387c938b..a463c941 100644 --- a/lib/tests/unittests/ClassNameTest.cc +++ b/lib/tests/unittests/ClassNameTest.cc @@ -26,4 +26,4 @@ DROGON_TEST(ClassName) CHECK(h.className() == "api::v1::hh"); CHECK(api::v1::hh::classTypeName() == "api::v1::hh"); CHECK(h.name() == "api::v1::hh"); -} \ No newline at end of file +} diff --git a/lib/tests/unittests/ControllerCreationTest.cc b/lib/tests/unittests/ControllerCreationTest.cc index b8fc1d23..32b8505b 100644 --- a/lib/tests/unittests/ControllerCreationTest.cc +++ b/lib/tests/unittests/ControllerCreationTest.cc @@ -45,4 +45,4 @@ DROGON_TEST(ControllerCreation) REQUIRE(Ctrl::created == false); REQUIRE(SimpleCtrl::created == false); REQUIRE(WsCtrl::created == false); -} \ No newline at end of file +} diff --git a/lib/tests/unittests/DrObjectTest.cc b/lib/tests/unittests/DrObjectTest.cc index cc24b356..28138dfd 100644 --- a/lib/tests/unittests/DrObjectTest.cc +++ b/lib/tests/unittests/DrObjectTest.cc @@ -40,4 +40,4 @@ DROGON_TEST(DrObjectNamespaceTest) auto objPtr2 = DrClassMap::getSingleInstance<::test::TestB>(); CHECK(objPtr2.get() != nullptr); CHECK(objPtr == objPtr2); -} \ No newline at end of file +} diff --git a/lib/tests/unittests/FileTypeTest.cc b/lib/tests/unittests/FileTypeTest.cc index b36bfc5e..259c1156 100644 --- a/lib/tests/unittests/FileTypeTest.cc +++ b/lib/tests/unittests/FileTypeTest.cc @@ -39,4 +39,4 @@ DROGON_TEST(FileTypeTest) CHECK(parseFileType("") == FT_UNKNOWN); CHECK(parseFileType("don'tknow") == FT_CUSTOM); } -} \ No newline at end of file +} diff --git a/lib/tests/unittests/GzipTest.cc b/lib/tests/unittests/GzipTest.cc index ebed3724..8a7149e0 100644 --- a/lib/tests/unittests/GzipTest.cc +++ b/lib/tests/unittests/GzipTest.cc @@ -316,4 +316,4 @@ DROGON_TEST(Gzip) auto decompressStr = utils::gzipDecompress(ret.data(), ret.length()); CHECK(inStr == decompressStr); -} \ No newline at end of file +} diff --git a/lib/tests/unittests/OStringStreamTest.cc b/lib/tests/unittests/OStringStreamTest.cc index ac94d8af..c19246a4 100644 --- a/lib/tests/unittests/OStringStreamTest.cc +++ b/lib/tests/unittests/OStringStreamTest.cc @@ -56,4 +56,4 @@ DROGON_TEST(OStringStreamTest) CHECK(ss.str() == "hello world!1233.14"); } -} \ No newline at end of file +} diff --git a/lib/tests/unittests/Sha1Test.cc b/lib/tests/unittests/Sha1Test.cc index 36dbb361..1b9db41d 100644 --- a/lib/tests/unittests/Sha1Test.cc +++ b/lib/tests/unittests/Sha1Test.cc @@ -9,4 +9,4 @@ DROGON_TEST(SHA1Test) "678901234567890123456789012345678901234567890"; auto str = drogon::utils::getSha1(in, strlen((const char *)in)); CHECK(str == "FECFD28BBC9345891A66D7C1B8FF46E60192D284"); -} \ No newline at end of file +} diff --git a/nosql_lib/redis/inc/drogon/nosql/RedisException.h b/nosql_lib/redis/inc/drogon/nosql/RedisException.h index dbb8dc0f..39f05654 100644 --- a/nosql_lib/redis/inc/drogon/nosql/RedisException.h +++ b/nosql_lib/redis/inc/drogon/nosql/RedisException.h @@ -66,4 +66,4 @@ class RedisException final : public std::exception using RedisExceptionCallback = std::function; } // namespace nosql -} // namespace drogon \ No newline at end of file +} // namespace drogon diff --git a/nosql_lib/redis/src/RedisTransactionImpl.h b/nosql_lib/redis/src/RedisTransactionImpl.h index 2f653671..785f8508 100644 --- a/nosql_lib/redis/src/RedisTransactionImpl.h +++ b/nosql_lib/redis/src/RedisTransactionImpl.h @@ -68,4 +68,4 @@ class RedisTransactionImpl final double timeout_{-1.0}; }; } // namespace nosql -} // namespace drogon \ No newline at end of file +} // namespace drogon diff --git a/orm_lib/inc/drogon/orm/RestfulController.h b/orm_lib/inc/drogon/orm/RestfulController.h index 52eb49f4..73d29ca4 100644 --- a/orm_lib/inc/drogon/orm/RestfulController.h +++ b/orm_lib/inc/drogon/orm/RestfulController.h @@ -180,4 +180,4 @@ class DROGON_EXPORT RestfulController : trantor::NonCopyable std::unordered_map masqueradingMap_; const std::vector columnsVector_; }; -} // namespace drogon \ No newline at end of file +} // namespace drogon diff --git a/orm_lib/src/RestfulController.cc b/orm_lib/src/RestfulController.cc index 965e68ac..1eb49c2b 100644 --- a/orm_lib/src/RestfulController.cc +++ b/orm_lib/src/RestfulController.cc @@ -80,4 +80,4 @@ orm::Criteria RestfulController::makeCriteria( } } return ret; -} \ No newline at end of file +} diff --git a/orm_lib/src/mysql_impl/test/test1.cc b/orm_lib/src/mysql_impl/test/test1.cc index d0fd4b1e..999fd9c5 100644 --- a/orm_lib/src/mysql_impl/test/test1.cc +++ b/orm_lib/src/mysql_impl/test/test1.cc @@ -125,4 +125,4 @@ int main() }; LOG_TRACE << "end"; getchar(); -} \ No newline at end of file +} diff --git a/orm_lib/src/sqlite3_impl/Sqlite3ResultImpl.h b/orm_lib/src/sqlite3_impl/Sqlite3ResultImpl.h index ff8e8183..069badf9 100644 --- a/orm_lib/src/sqlite3_impl/Sqlite3ResultImpl.h +++ b/orm_lib/src/sqlite3_impl/Sqlite3ResultImpl.h @@ -50,4 +50,4 @@ class Sqlite3ResultImpl : public ResultImpl size_t insertId_{0}; }; } // namespace orm -} // namespace drogon \ No newline at end of file +} // namespace drogon