Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
Restyled by clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits authored and atmaxinger committed Apr 1, 2023
1 parent 68cf681 commit 218dc1a
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion src/libs/elektra/errors.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ void elektraCopyError (Key * target, Key * source)
KeySet * targetMeta = keyMeta (target);
if (targetMeta == NULL)
{
return ;
return;
}

KeySet * sourceMeta = keyMeta (source);
Expand Down
2 changes: 1 addition & 1 deletion src/libs/record/record.c
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ bool elektraRecordUndo (KDB * handle, KDB * sessionStorageHandle, Key * parentKe
goto innercleanup;
}

innercleanup:
innercleanup:
if (activeKey != NULL)
{
// Reenable session recording
Expand Down
2 changes: 1 addition & 1 deletion src/tools/kdb/recordclear.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
#include "recordclear.hpp"
#include "coloredkdbio.hpp"
#include <cmdline.hpp>
#include <iostream>
#include <kdb.hpp>
#include <kdbrecord.h>
#include <iostream>

using namespace std;
using namespace kdb;
Expand Down
8 changes: 4 additions & 4 deletions src/tools/kdb/recordstart.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
*/

#include "coloredkdbio.hpp"
#include "recordstart.hpp"
#include "coloredkdbio.hpp"
#include <cmdline.hpp>
#include <iostream>
#include <kdb.hpp>
#include <kdbrecord.h>
#include <iostream>

using namespace std;
using namespace kdb;
Expand All @@ -21,7 +21,7 @@ RecordStartCommand::~RecordStartCommand () = default;

int RecordStartCommand::execute (const Cmdline & cmdline)
{
if (cmdline.arguments.size() > 1)
if (cmdline.arguments.size () > 1)
{
throw invalid_argument ("max 1 argument needed");
}
Expand All @@ -30,7 +30,7 @@ int RecordStartCommand::execute (const Cmdline & cmdline)
Key parentKey ("/");
Key errorKey ("/");

if (cmdline.arguments.size() == 1)
if (cmdline.arguments.size () == 1)
{
parentKey = cmdline.createKey (0);
}
Expand Down
6 changes: 3 additions & 3 deletions src/tools/kdb/recordstop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
*/

#include "coloredkdbio.hpp"
#include "recordstop.hpp"
#include <kdb.hpp>
#include <kdbrecord.h>
#include "coloredkdbio.hpp"
#include <cmdline.hpp>
#include <iostream>
#include <kdb.hpp>
#include <kdbrecord.h>

using namespace std;
using namespace kdb;
Expand Down
4 changes: 2 additions & 2 deletions src/tools/kdb/recordundo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
*/

#include "coloredkdbio.hpp"
#include "recordundo.hpp"
#include "coloredkdbio.hpp"
#include <cmdline.hpp>
#include <iostream>
#include <kdb.hpp>
#include <kdbrecord.h>
#include <iostream>

using namespace std;
using namespace kdb;
Expand Down
8 changes: 4 additions & 4 deletions tests/cframework/tests.h
Original file line number Diff line number Diff line change
Expand Up @@ -293,13 +293,13 @@ int init (int argc, char ** argv);
const char * value = keyString (k); \
if (value == NULL) \
{ \
yield_error_fmt ("expected value of key \"%s\" to equal \"%s\" but was NULL" \
, keyName, expectedKeyValue) \
yield_error_fmt ("expected value of key \"%s\" to equal \"%s\" but was NULL", keyName, \
expectedKeyValue) \
} \
else if (strcmp (expectedKeyValue, value) != 0) \
{ \
yield_error_fmt ("expected value of key \"%s\" to equal \"%s\" but was \"%s\"" \
, keyName, expectedKeyValue, value) \
yield_error_fmt ("expected value of key \"%s\" to equal \"%s\" but was \"%s\"", keyName, \
expectedKeyValue, value) \
} \
} \
} \
Expand Down
14 changes: 7 additions & 7 deletions tests/ctest/test_error.c
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/**
* @file
*
* @brief
*
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
*/
* @file
*
* @brief
*
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
*/

#include <tests.h>
#include <kdberrors.h>
#include <tests.h>

static void test_elektraSetErrorINTERNAL_shouldAddError (void)
{
Expand Down

0 comments on commit 218dc1a

Please sign in to comment.