clang-format: update with latest
Copy the latest clang-format and apply to the repository.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I10a3fe64d4ca77601e6855daf46954579312c7df
diff --git a/src/associations.cpp b/src/associations.cpp
index 346cebd..6042d4d 100644
--- a/src/associations.cpp
+++ b/src/associations.cpp
@@ -321,12 +321,11 @@
// Already waiting on this path for another association,
// so just add this endpoint and owner.
auto& endpoints = p->second;
- auto e =
- std::find_if(endpoints.begin(), endpoints.end(),
- [&assoc, &owner](const auto& endpoint) {
- return (std::get<ownerPos>(endpoint) == owner) &&
- (std::get<assocPos>(endpoint) == assoc);
- });
+ auto e = std::find_if(endpoints.begin(), endpoints.end(),
+ [&assoc, &owner](const auto& endpoint) {
+ return (std::get<ownerPos>(endpoint) == owner) &&
+ (std::get<assocPos>(endpoint) == assoc);
+ });
if (e == endpoints.end())
{
endpoints.emplace_back(owner, std::move(assoc));
@@ -509,14 +508,14 @@
auto a = std::find_if(
assocs.begin(), assocs.end(),
[&endpointPath, &otherPath](const auto& ap) {
- const auto& endpoints = ap.second;
- auto endpoint = std::find(
- endpoints.begin(), endpoints.end(), otherPath);
- if (endpoint != endpoints.end())
- {
- return ap.first.starts_with(endpointPath + '/');
- }
- return false;
+ const auto& endpoints = ap.second;
+ auto endpoint = std::find(endpoints.begin(),
+ endpoints.end(), otherPath);
+ if (endpoint != endpoints.end())
+ {
+ return ap.first.starts_with(endpointPath + '/');
+ }
+ return false;
});
if (a != assocs.end())