From 5cbb01dd1f0b45857fe4f398089e9563010b9c9c Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 28 Oct 2022 07:46:17 +0300 Subject: [PATCH] Suppress vscode llvm warnings --- .vscode/settings.json | 8 +++++++- include/smartptr.hpp | 7 ++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 44109af..3776eb0 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -8,5 +8,11 @@ "C_Cpp.default.cppStandard": "c++20", "C_Cpp.intelliSenseMemoryLimit": 16384, "editor.smoothScrolling": true, - "editor.cursorSmoothCaretAnimation": true + "editor.cursorSmoothCaretAnimation": true, + "C_Cpp.codeAnalysis.clangTidy.checks.disabled": [ + "clang-analyzer-security.insecureAPI.strcpy", + "clang-diagnostic-unknown-warning-option", + "clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling", + "clang-diagnostic-implicit-exception-spec-mismatch" + ] } \ No newline at end of file diff --git a/include/smartptr.hpp b/include/smartptr.hpp index 10efc99..0d4cc99 100644 --- a/include/smartptr.hpp +++ b/include/smartptr.hpp @@ -1,4 +1,7 @@ -#pragma once +#ifndef __FENNIX_KERNEL_SMART_POINTER_H__ +#define __FENNIX_KERNEL_SMART_POINTER_H__ + +#include #include @@ -147,3 +150,5 @@ template class weak_ptr { }; + +#endif // !__FENNIX_KERNEL_SMART_POINTER_H__