Cleanup formatting
Wew, that's a lot of stuff. But I thought it makes sense after the
sysrepo migration.
Change-Id: If363d2ce1b11106113a9f0c37a3bcd59a940bd0b
diff --git a/src/ast_handlers.hpp b/src/ast_handlers.hpp
index c4658e4..686af85 100644
--- a/src/ast_handlers.hpp
+++ b/src/ast_handlers.hpp
@@ -57,7 +57,7 @@
if (schema.listHasKey(dataPathToSchemaPath(parserContext.m_tmpListPath), ast)) {
parserContext.m_tmpListKeyLeafPath.m_location = dataPathToSchemaPath(parserContext.m_tmpListPath);
- parserContext.m_tmpListKeyLeafPath.m_node = { optModuleToOptString(parserContext.m_tmpListPath.m_nodes.back().m_prefix), ast };
+ parserContext.m_tmpListKeyLeafPath.m_node = {optModuleToOptString(parserContext.m_tmpListPath.m_nodes.back().m_prefix), ast};
} else {
auto listName = std::get<list_>(parserContext.m_tmpListPath.m_nodes.back().m_suffix).m_name;
parserContext.m_errorMsg = listName + " is not indexed by \"" + ast + "\".";
@@ -333,12 +333,12 @@
decltype(listInstances) filteredInstances;
//This filters out instances, which don't correspond to the partial instance we have.
- const auto partialFitsComplete = [&parserContext] (const auto& complete) {
+ const auto partialFitsComplete = [&parserContext](const auto& complete) {
const auto& partial = parserContext.m_tmpListKeys;
- return std::all_of(partial.begin(), partial.end(), [&complete] (const auto& oneKV) {
- const auto& [k, v] = oneKV;
- return complete.at(k) == v;
- });
+ return std::all_of(partial.begin(), partial.end(), [&complete](const auto& oneKV) {
+ const auto& [k, v] = oneKV;
+ return complete.at(k) == v;
+ });
};
std::copy_if(listInstances.begin(), listInstances.end(), std::inserter(filteredInstances, filteredInstances.end()), partialFitsComplete);
@@ -370,7 +370,7 @@
};
template <typename T>
-std::string commandNamesVisitor (boost::type<T>)
+std::string commandNamesVisitor(boost::type<T>)
{
return T::name;
}