Skip to content

Commit 90617ff

Browse files
fix(style): Run clang-format
Signed-off-by: Steffen Vogel <steffen.vogel@opal-rt.com>
1 parent 786470a commit 90617ff

7 files changed

Lines changed: 10 additions & 13 deletions

File tree

common/include/villas/fs.hpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,12 @@
1111

1212
#ifdef WITH_GHC_FS
1313

14-
#include <ghc/filesystem.hpp>
1514
#include <fmt/ostream.h>
15+
#include <ghc/filesystem.hpp>
1616

1717
namespace fs = ghc::filesystem;
1818

19-
template <>
20-
class fmt::formatter<fs::path> : public fmt::ostream_formatter {};
19+
template <> class fmt::formatter<fs::path> : public fmt::ostream_formatter {};
2120

2221
#else
2322

include/villas/nodes/opal_orchestra/ddf.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616

1717
#include <libxml/tree.h>
1818

19+
#include <villas/fs.hpp>
1920
#include <villas/nodes/opal_orchestra/signal.hpp>
2021
#include <villas/sample.hpp>
2122
#include <villas/signal.hpp>
2223
#include <villas/signal_list.hpp>
23-
#include <villas/fs.hpp>
2424

2525
namespace villas {
2626
namespace node {

lib/api/requests/graph.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
*/
77

88
extern "C" {
9-
#include <graphviz/gvc.h>
109
#include <graphviz/graphviz_version.h>
10+
#include <graphviz/gvc.h>
1111
}
1212

1313
#include <villas/api/request.hpp>

lib/mapping.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,8 @@ int MappingEntry::parseString(const std::string &str) {
8787
throw RuntimeError("Failed to parse mapping expression: {}", str);
8888
}
8989

90-
MappingEntry::MappingEntry()
91-
: node(nullptr), type(Type::UNKNOWN), length(0), offset(0),
92-
nodeName() {}
90+
MappingEntry::MappingEntry() // cppcheck-suppress uninitMemberVar
91+
: node(nullptr), type(Type::UNKNOWN), length(0), offset(0), nodeName() {}
9392

9493
int MappingEntry::parse(json_t *json) {
9594
const char *str;

lib/nodes/opal_async.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88
#include <cstdlib>
99
#include <thread>
10-
#include <vector>
1110
#include <unordered_map>
11+
#include <vector>
1212

1313
#include <unistd.h>
1414

lib/nodes/opal_orchestra.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ extern "C" {
2424

2525
#include <villas/config_helper.hpp>
2626
#include <villas/exceptions.hpp>
27+
#include <villas/fs.hpp>
2728
#include <villas/node_compat.hpp>
2829
#include <villas/nodes/opal_orchestra/ddf.hpp>
2930
#include <villas/nodes/opal_orchestra/error.hpp>
@@ -33,7 +34,6 @@ extern "C" {
3334
#include <villas/signal_type.hpp>
3435
#include <villas/super_node.hpp>
3536
#include <villas/utils.hpp>
36-
#include <villas/fs.hpp>
3737

3838
using namespace villas;
3939
using namespace villas::node;

lib/nodes/opal_orchestra/ddf.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ extern "C" {
1111
#include <RTAPI.h>
1212
}
1313

14+
#include <villas/fs.hpp>
1415
#include <villas/nodes/opal_orchestra/ddf.hpp>
1516
#include <villas/nodes/opal_orchestra/error.hpp>
1617
#include <villas/nodes/opal_orchestra/signal.hpp>
1718
#include <villas/sample.hpp>
1819
#include <villas/signal.hpp>
19-
#include <villas/fs.hpp>
2020

2121
using namespace villas::node;
2222
using namespace villas::node::orchestra;
@@ -368,8 +368,7 @@ xmlNode *DataDefinitionFile::toXml() const {
368368
return rootNode;
369369
}
370370

371-
void DataDefinitionFile::writeToFile(
372-
const fs::path &filename) const {
371+
void DataDefinitionFile::writeToFile(const fs::path &filename) const {
373372
// Create a new XML document
374373
auto *doc = xmlNewDoc(BAD_CAST "1.0");
375374
auto *rootNode = toXml();

0 commit comments

Comments
 (0)