From 0090b248cf1b6e8f1bf49e8356bd8fa7e1d3e92d Mon Sep 17 00:00:00 2001 From: Julian Hinxlage Date: Tue, 19 Nov 2019 12:26:31 +0100 Subject: [PATCH] ~ fixed clang tidy errors --- main/main.cpp | 2 +- src/demo.cpp | 3 ++- test/test_demo.cpp | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/main/main.cpp b/main/main.cpp index 00dd65a..85592cb 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -1,7 +1,7 @@ #include -#include "vkvm.hpp" #include "internal.hpp" +#include "vkvm.hpp" int main() { vkvm::initialize(0); diff --git a/src/demo.cpp b/src/demo.cpp index 1cc01fc..8773d58 100644 --- a/src/demo.cpp +++ b/src/demo.cpp @@ -1,5 +1,6 @@ #include "demo.h" int test() { - return 42; + const int returnValue = 42; + return returnValue; } diff --git a/test/test_demo.cpp b/test/test_demo.cpp index 7cb240e..2d9ce94 100644 --- a/test/test_demo.cpp +++ b/test/test_demo.cpp @@ -1,5 +1,5 @@ -#include #include "../src/demo.h" +#include TEST_CASE("Demo test") { REQUIRE(test() == 42);