Update clang-format to disallow single line for-loops
This commit is contained in:
1 parent
ab6c726ebc
commit
988c5552d0
22 files changed
+79
-40
No files matched your search
@@ -313,7 +313,8 @@ struct Helper
|
||||
{
|
||||
std::map<State, int> visited;
|
||||
std::multimap<int, std::pair<int, State>> open;
|
||||
for (int i = 0; i < initial.size(); i++) open.emplace(0, std::pair<int, State>{0, initial[i]});
|
||||
for (int i = 0; i < initial.size(); i++)
|
||||
open.emplace(0, std::pair<int, State>{0, initial[i]});
|
||||
while (!open.empty())
|
||||
{
|
||||
auto it = open.begin();
|
||||
@@ -355,7 +356,8 @@ struct Helper
|
||||
{
|
||||
std::map<State, int> visited;
|
||||
std::multimap<int, std::pair<int, std::vector<State>>> open;
|
||||
for (int i = 0; i < initial.size(); i++) open.emplace(0, std::pair<int, std::vector<State>>{0, {initial[i]}});
|
||||
for (int i = 0; i < initial.size(); i++)
|
||||
open.emplace(0, std::pair<int, std::vector<State>>{0, {initial[i]}});
|
||||
while (!open.empty())
|
||||
{
|
||||
const auto& [heuristicVal, state] = *open.begin();
|
||||
|
||||
Reference in new issue
Block a user