Просмотр исходного кода

config: suppress macro usage linter messages

Michele Caini 2 лет назад
Родитель
Сommit
1ffbd845dc
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      src/entt/config/config.h

+ 4 - 0
src/entt/config/config.h

@@ -3,6 +3,8 @@
 
 #include "version.h"
 
+// NOLINTBEGIN(cppcoreguidelines-macro-usage)
+
 #if defined(__cpp_exceptions) && !defined(ENTT_NOEXCEPTION)
 #    define ENTT_CONSTEXPR
 #    define ENTT_THROW throw
@@ -88,4 +90,6 @@
 #    pragma detect_mismatch("entt.nonstd", ENTT_XSTR(ENTT_NONSTD))
 #endif
 
+// NOLINTEND(cppcoreguidelines-macro-usage)
+
 #endif