Skip to content

Commit f5e6610

Browse files
fix clang-tidy warnings
1 parent 55c38a6 commit f5e6610

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/cxxitimer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ ITimer::~ITimer() {
6262
try {
6363
stop();
6464
} catch (const std::exception &e) {
65-
std::cerr << "Exception in destructor (" << __PRETTY_FUNCTION__ << "): " << e.what() << std::endl;
65+
std::cerr << "Exception in destructor (" << __PRETTY_FUNCTION__ << "): " << e.what() << '\n';
6666
exit(EX_SOFTWARE);
6767
}
6868
}

test/test.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
#include <thread>
1313

1414
static int x = 0;
15-
static void handler(int) { ++x; }
15+
static void handler(int) {
16+
++x;
17+
}
1618

1719
int main() {
1820
struct sigaction sa {};
@@ -37,7 +39,7 @@ int main() {
3739

3840
std::this_thread::sleep_for(std::chrono::seconds(10));
3941
if (x != 5) {
40-
std::cerr << "Assertion x == 5 failed " << __FILE__ << ":" << __LINE__ << std::endl;
42+
std::cerr << "Assertion x == 5 failed " << __FILE__ << ":" << __LINE__ << '\n';
4143
return EXIT_FAILURE;
4244
}
4345
}

0 commit comments

Comments
 (0)