Fixed clangd type hints in the matrix.cpp file
Some checks failed
Merge-Checker / build_and_test (pull_request) Failing after 28s
Some checks failed
Merge-Checker / build_and_test (pull_request) Failing after 28s
This commit is contained in:
2
.vscode/settings.json
vendored
2
.vscode/settings.json
vendored
@@ -76,7 +76,7 @@
|
|||||||
"clangd.enable": true,
|
"clangd.enable": true,
|
||||||
"C_Cpp.dimInactiveRegions": false,
|
"C_Cpp.dimInactiveRegions": false,
|
||||||
"editor.defaultFormatter": "xaver.clang-format",
|
"editor.defaultFormatter": "xaver.clang-format",
|
||||||
"clangd.inactiveRegions.useBackgroundHighlight": true,
|
"clangd.inactiveRegions.useBackgroundHighlight": false,
|
||||||
"clangd.arguments": [
|
"clangd.arguments": [
|
||||||
"--compile-commands-dir=${workspaceFolder}/build"
|
"--compile-commands-dir=${workspaceFolder}/build"
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
// This #ifndef section makes clangd happy so that it can properly do type hints
|
||||||
|
// in this file
|
||||||
|
#ifndef MATRIX_H_
|
||||||
|
#define MATRIX_H_
|
||||||
|
#include "Matrix.hpp"
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef MATRIX_H_ // since the .cpp file has to be included by the .hpp file this
|
#ifdef MATRIX_H_ // since the .cpp file has to be included by the .hpp file this
|
||||||
// will evaluate to true
|
// will evaluate to true
|
||||||
#include "Matrix.hpp"
|
#include "Matrix.hpp"
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
#ifndef MATRIX_H_
|
// #ifndef MATRIX_H_
|
||||||
#define MATRIX_H_
|
// #define MATRIX_H_
|
||||||
|
#pragma once
|
||||||
|
|
||||||
#include <array>
|
#include <array>
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
@@ -258,6 +259,6 @@ private:
|
|||||||
void setMatrixToArray(const std::array<float, rows * columns> &array);
|
void setMatrixToArray(const std::array<float, rows * columns> &array);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifndef MATRIX_H_
|
||||||
#include "Matrix.cpp"
|
#include "Matrix.cpp"
|
||||||
|
|
||||||
#endif // MATRIX_H_
|
#endif // MATRIX_H_
|
||||||
Reference in New Issue
Block a user