Skip to content

Commit 238e061

Browse files
fix clang-tidy warnings + change license
1 parent cea9d05 commit 238e061

14 files changed

+2264
-944
lines changed

.clang-tidy

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ Checks: 'bugprone-*,
5151
readability-string-compare,
5252
readability-uniqueptr-delete-release,
5353
readability-use-anyofallof
54-
-modernize-use-trailing-return-type'
54+
-modernize-use-trailing-return-type
55+
-bugprone-exception-escape'
5556
WarningsAsErrors: '*,
5657
-modernize-*,
5758
-readability-*

.clang-tidy-noerrors

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ Checks: 'bugprone-*,
5151
readability-string-compare,
5252
readability-uniqueptr-delete-release,
5353
readability-use-anyofallof
54-
-modernize-use-trailing-return-type'
54+
-modernize-use-trailing-return-type
55+
-bugprone-exception-escape'
5556
WarningsAsErrors: ''
5657
HeaderFilterRegex: ''

LICENSE

Lines changed: 674 additions & 21 deletions
Large diffs are not rendered by default.

src/InputParser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Copyright (C) 2022 Nikolas Koesling <nikolas@koesling.info>.
3-
* This program is free software. You can redistribute it and/or modify it under the terms of the MIT License.
3+
* This program is free software. You can redistribute it and/or modify it under the terms of the GPLv3 License.
44
*/
55

66
#include "InputParser.hpp"

src/InputParser.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Copyright (C) 2022 Nikolas Koesling <nikolas@koesling.info>.
3-
* This program is free software. You can redistribute it and/or modify it under the terms of the MIT License.
3+
* This program is free software. You can redistribute it and/or modify it under the terms of the GPLv3 License.
44
*/
55

66
#pragma once

src/InputParser_float.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Copyright (C) 2022 Nikolas Koesling <nikolas@koesling.info>.
3-
* This program is free software. You can redistribute it and/or modify it under the terms of the MIT License.
3+
* This program is free software. You can redistribute it and/or modify it under the terms of the GPLv3 License.
44
*/
55

66
#pragma once

src/InputParser_int.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Copyright (C) 2022 Nikolas Koesling <nikolas@koesling.info>.
3-
* This program is free software. You can redistribute it and/or modify it under the terms of the MIT License.
3+
* This program is free software. You can redistribute it and/or modify it under the terms of the GPLv3 License.
44
*/
55

66
#pragma once

src/generated/version_info.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ const std::string stdin_to-modbus-shm_version_info::VERSION_STR(PROJECT_VERSION)
1111
const std::string stdin_to-modbus-shm_version_info::NAME(PROJECT_NAME);
1212
const std::string stdin_to-modbus-shm_version_info::COMPILER(COMPILER_INFO);
1313
const std::string stdin_to-modbus-shm_version_info::SYSTEM(SYSTEM_INFO);
14-
const std::string stdin_to-modbus-shm_version_info::GIT_HASH("2cba0bc31d6cd235fc572fc0b97cb375885f939b-dirty");
14+
const std::string stdin_to-modbus-shm_version_info::GIT_HASH("cea9d0580e2b76930a8c2c8bcfe6ed376f640233-dirty");

src/input_parse.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Copyright (C) 2021-2022 Nikolas Koesling <nikolas@koesling.info>.
3-
* This program is free software. You can redistribute it and/or modify it under the terms of the MIT License.
3+
* This program is free software. You can redistribute it and/or modify it under the terms of the GPLv3 License.
44
*/
55

66
#pragma once

src/license.cpp

Lines changed: 1448 additions & 777 deletions
Large diffs are not rendered by default.

src/license.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Copyright (C) 2022 Nikolas Koesling <nikolas@koesling.info>.
3-
* This program is free software. You can redistribute it and/or modify it under the terms of the MIT License.
3+
* This program is free software. You can redistribute it and/or modify it under the terms of the GPLv3 License.
44
*/
55

66
#pragma once
@@ -11,4 +11,4 @@
1111
* \brief print licences
1212
* @param o output stream used to print licenses
1313
*/
14-
void print_licenses(std::ostream &o);
14+
void print_licenses(std::ostream &o, bool full);

src/main.cpp

Lines changed: 128 additions & 134 deletions
Large diffs are not rendered by default.

src/readline.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Copyright (C) 2021-2022 Nikolas Koesling <nikolas@koesling.info>.
3-
* This program is free software. You can redistribute it and/or modify it under the terms of the MIT License.
3+
* This program is free software. You can redistribute it and/or modify it under the terms of the GPLv3 License.
44
*/
55

66
#include "readline/history.h"

src/split_string.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Copyright (C) 2021-2022 Nikolas Koesling <nikolas@koesling.info>.
3-
* This program is free software. You can redistribute it and/or modify it under the terms of the MIT License.
3+
* This program is free software. You can redistribute it and/or modify it under the terms of the GPLv3 License.
44
*/
55

66
#pragma once

0 commit comments

Comments
 (0)