Update clang-format config and apply

- Regroup and sort #include directives (like we used to, but automatic)
- Set AlwaysBreakTemplateDeclarations to true
This commit is contained in:
Geza Lore
2022-08-05 12:00:24 +01:00
parent fac8e76923
commit 96a4b3e5a5
241 changed files with 947 additions and 580 deletions
+10 -7
View File
@@ -22,20 +22,21 @@
#include "config_build.h"
#include "verilatedos.h"
#include "V3Error.h"
#include "V3Global.h"
#include "V3File.h"
#include "V3Graph.h"
#include "V3TSP.h"
#include "V3Error.h"
#include "V3File.h"
#include "V3Global.h"
#include "V3Graph.h"
#include <algorithm>
#include <cmath>
#include <list>
#include <memory>
#include <sstream>
#include <string>
#include <unordered_set>
#include <unordered_map>
#include <unordered_set>
#include <vector>
//######################################################################
@@ -51,7 +52,8 @@ VL_DEBUG_FUNC; // Declare debug()
} // namespace V3TSP
// Vertex that tracks a per-vertex key
template <typename T_Key> class TspVertexTmpl : public V3GraphVertex {
template <typename T_Key>
class TspVertexTmpl final : public V3GraphVertex {
private:
const T_Key m_key;
@@ -68,7 +70,8 @@ private:
// TspGraphTmpl represents a complete graph, templatized to work with
// different T_Key types.
template <typename T_Key> class TspGraphTmpl : public V3Graph {
template <typename T_Key>
class TspGraphTmpl final : public V3Graph {
public:
// TYPES
using Vertex = TspVertexTmpl<T_Key>;