Bladeren bron

Configure vscode file associations, use hpp instead of h

Fred Sundvik 8 jaren geleden
bovenliggende
commit
67f722c9c8

+ 6 - 0
.vscode/settings.json

@@ -4,5 +4,11 @@
     "files.exclude": {
         "**/.build": true,
         "**/*.hex": true
+    },
+    "files.associations": {
+        "*.h": "c",
+        "*.c": "c",
+        "*.cpp": "cpp",
+        "*.hpp": "cpp"
     }
 }

+ 1 - 1
tests/basic/test_keypress.cpp

@@ -14,7 +14,7 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#include "test_common.h"
+#include "test_common.hpp"
 
 using testing::_;
 using testing::Return;

+ 1 - 1
tests/basic/test_macro.cpp

@@ -14,7 +14,7 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#include "test_common.h"
+#include "test_common.hpp"
 #include "time.h"
 
 using testing::InSequence;

+ 1 - 1
tests/basic/test_tapping.cpp

@@ -14,7 +14,7 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#include "test_common.h"
+#include "test_common.hpp"
 #include "action_tapping.h"
 
 using testing::_;

+ 1 - 1
tests/test_common/keyboard_report_util.cpp

@@ -14,7 +14,7 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
- #include "keyboard_report_util.h"
+ #include "keyboard_report_util.hpp"
  #include <vector>
  #include <algorithm>
  using namespace testing;

+ 0 - 0
tests/test_common/keyboard_report_util.h → tests/test_common/keyboard_report_util.hpp


+ 3 - 3
tests/test_common/test_common.h → tests/test_common/test_common.hpp

@@ -18,7 +18,7 @@
 #include "gmock/gmock.h"
 
 #include "quantum.h"
-#include "test_driver.h"
+#include "test_driver.hpp"
 #include "test_matrix.h"
-#include "keyboard_report_util.h"
-#include "test_fixture.h"
+#include "keyboard_report_util.hpp"
+#include "test_fixture.hpp"

+ 1 - 1
tests/test_common/test_driver.cpp

@@ -14,7 +14,7 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#include "test_driver.h"
+#include "test_driver.hpp"
 
 TestDriver* TestDriver::m_this = nullptr;
 

+ 1 - 1
tests/test_common/test_driver.h → tests/test_common/test_driver.hpp

@@ -20,7 +20,7 @@
 #include "gmock/gmock.h"
 #include <stdint.h>
 #include "host.h"
-#include "keyboard_report_util.h"
+#include "keyboard_report_util.hpp"
 
 
 class TestDriver {

+ 2 - 2
tests/test_common/test_fixture.cpp

@@ -1,6 +1,6 @@
-#include "test_fixture.h"
+#include "test_fixture.hpp"
 #include "gmock/gmock.h"
-#include "test_driver.h"
+#include "test_driver.hpp"
 #include "test_matrix.h"
 #include "keyboard.h"
 #include "action.h"

+ 0 - 0
tests/test_common/test_fixture.h → tests/test_common/test_fixture.hpp