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__