Skip to content
Snippets Groups Projects
Verified Commit ee041b42 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

STY: autoformatting

parent 8d09f71f
No related branches found
No related tags found
2 merge requests!42Release 0.2.0,!40F dot in username
Pipeline #24977 failed
This commit is part of merge request !40. Comments created here will be created in the context of that merge request.
...@@ -122,7 +122,8 @@ public: ...@@ -122,7 +122,8 @@ public:
*/ */
// TODO(tf) find a way to deal with this: // TODO(tf) find a way to deal with this:
// NOLINTNEXTLINE(bugprone-easily-swappable-parameters) // NOLINTNEXTLINE(bugprone-easily-swappable-parameters)
[[nodiscard]] auto RetrieveSingleUser(const std::string &realm, const std::string &name) const -> User; [[nodiscard]] auto RetrieveSingleUser(const std::string &realm, const std::string &name) const
-> User;
/** /**
* Create a new user. * Create a new user.
......
...@@ -211,8 +211,8 @@ auto Connection::CreateSingleRole(const Role &role) const -> void { ...@@ -211,8 +211,8 @@ auto Connection::CreateSingleRole(const Role &role) const -> void {
// TODO(tf) find a way to deal with this: // TODO(tf) find a way to deal with this:
// NOLINTNEXTLINE(bugprone-easily-swappable-parameters) // NOLINTNEXTLINE(bugprone-easily-swappable-parameters)
[[nodiscard]] auto Connection::RetrieveSingleUser(const std::string &realm, const std::string &name) const [[nodiscard]] auto Connection::RetrieveSingleUser(const std::string &realm,
-> User { const std::string &name) const -> User {
RetrieveSingleUserRequest request; RetrieveSingleUserRequest request;
request.set_name(name); request.set_name(name);
request.set_realm(realm); request.set_realm(realm);
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
// A simple caosdb client // A simple caosdb client
#ifdef BUILD_ACM #ifdef BUILD_ACM
#include "caosdb/acm/role.h" // for Role #include "caosdb/acm/role.h" // for Role
#endif #endif
#include "caosdb/connection.h" // for Connection, ConnectionManager #include "caosdb/connection.h" // for Connection, ConnectionManager
#include "caosdb/constants.h" // for LIBCAOSDB_VERSION_MINOR, LIBCAOSDB_V... #include "caosdb/constants.h" // for LIBCAOSDB_VERSION_MINOR, LIBCAOSDB_V...
...@@ -37,8 +37,7 @@ ...@@ -37,8 +37,7 @@
#include <iostream> // for operator<<, basic_ostream, basic_ost... #include <iostream> // for operator<<, basic_ostream, basic_ost...
#include <memory> // for unique_ptr, allocator, __shared_ptr_... #include <memory> // for unique_ptr, allocator, __shared_ptr_...
#include <string> // for operator<<, char_traits #include <string> // for operator<<, char_traits
#include <vector> // for vector #include <vector> // for vector
const auto logger_name = "libcaosdb"; const auto logger_name = "libcaosdb";
...@@ -73,7 +72,7 @@ auto test_connection() -> void { ...@@ -73,7 +72,7 @@ auto test_connection() -> void {
<< std::endl; << std::endl;
} }
auto retrieve_entity_by_id(const std::string &id) -> void { auto retrieve_entity_by_id(const std::string &id) -> void {
std::cout << "Retrieve entity " << id << std::endl; std::cout << "Retrieve entity " << id << std::endl;
const auto &connection = caosdb::connection::ConnectionManager::GetDefaultConnection(); const auto &connection = caosdb::connection::ConnectionManager::GetDefaultConnection();
auto transaction(connection->CreateTransaction()); auto transaction(connection->CreateTransaction());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment