From 92e164f901e30d7758ba290d36dff4de5ffb2383 Mon Sep 17 00:00:00 2001 From: timetravelCat Date: Sat, 18 Jan 2025 10:23:44 +0000 Subject: [PATCH] Update VSCode settings and CMakeLists for improved linting and include paths --- .vscode/settings.json | 3 +++ CMakeLists.txt | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.vscode/settings.json b/.vscode/settings.json index 5a6a1d6..20de4f3 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -15,6 +15,7 @@ "c-cpp-flylint.undefines": [ ], "c-cpp-flylint.includePaths": [ "${workspaceFolder}/include", + // "/usr/local/cuda/include" ], "c-cpp-flylint.excludeFromWorkspacePaths": [ "/usr/include/**", @@ -28,6 +29,7 @@ "c-cpp-flylint.cppcheck.suppressions": [ // "missingIncludeSystem", // "constParameter", + "noExplicitConstructor", "unusedFunction", // "preprocessorErrorDirective", // "constParameterPointer", @@ -90,4 +92,5 @@ }, "C_Cpp.default.configurationProvider": "ms-vscode.cmake-tools", + // "C_Cpp.default.compileCommands": "${workspaceFolder}/build/compile_commands.json", } diff --git a/CMakeLists.txt b/CMakeLists.txt index d9366da..6086fb1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -73,6 +73,9 @@ add_library(${PROJECT_NAME}::${PROJECT_NAME} ALIAS ${PROJECT_NAME}) target_include_directories(${PROJECT_NAME} PUBLIC $ $) + +# target_include_directories(${PROJECT_NAME} SYSTEM PUBLIC +# ${CMAKE_CUDA_TOOLKIT_INCLUDE_DIRECTORIES}) target_compile_options(${PROJECT_NAME} PUBLIC -Wall # Enable all common warnings. -Wextra # Enable additional warnings not covered by -Wall.