Skip to content

Commit

Permalink
refactor: disable DynamicTypeList
Browse files Browse the repository at this point in the history
  • Loading branch information
OEOTYAN committed Jan 30, 2024
1 parent 4140586 commit 4fcaac8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/ll/api/base/Meta.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ template <class Group, class T, auto Id = int64{}>
}
}

#ifndef __clang__
#if 0
template <class Group>
struct DynamicTypeList {
template <size_t N>
Expand Down
4 changes: 2 additions & 2 deletions src/ll/test/ConfigTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class TestClass {
// LL_AUTO_TYPE_INSTANCE_HOOK(Virtual, HookPriority::Normal, FillCommand, &FillCommand::execute, void, CommandOrigin
// const&, CommandOutput&) {
// }
#ifndef __clang__
#if 0
struct myTypeList1 : ll::meta::DynamicTypeList<myTypeList1> {};
struct myTypeList2 : ll::meta::DynamicTypeList<myTypeList2> {};
struct myTypeList3 : ll::meta::TypeList<bool, int> {};
Expand Down Expand Up @@ -154,7 +154,7 @@ LL_AUTO_TYPE_INSTANCE_HOOK(ConfigTest, HookPriority::Normal, ServerInstance, &Se

ll::logger.debug("789\xDB\xFE");
ll::logger.debug("789\xDB\xFE");
#ifndef __clang__
#if 0
myTypeList1::push_back<int>();
myTypeList1::push_back<float>();
ll::logger.debug("{}", ll::reflection::type_raw_name_v<decltype(myTypeList1::value())>);
Expand Down
4 changes: 2 additions & 2 deletions src/ll/test/EventTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

#include "ll/api/utils/HashUtils.h"

#ifndef __clang__
#if 0
struct myTypeList2 : ll::meta::DynamicTypeList<myTypeList2> {};
#endif

Expand Down Expand Up @@ -213,7 +213,7 @@ LL_AUTO_TYPE_INSTANCE_HOOK(
.debug("Player {} MultiListener of {}", ev.self().getRealName(), ll::reflection::type_raw_name_v<decltype(ev)>);
});
bus.addListener(mul);
#ifndef __clang__
#if 0
myTypeList2::push_back<float>();
ll::logger.debug("{}", typeid(myTypeList2::value()).name());
#endif
Expand Down
4 changes: 0 additions & 4 deletions src/mc/_HeaderOutputPredefine.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
#pragma once

#ifdef __clang__
#pragma clang diagnostic ignored "-Wignored-qualifiers"
#endif

#pragma warning(disable : 4099) // for MOJANG : type name first seen using 'class' now seen using 'struct'
#pragma warning(disable : 4201) // for MOJANG : nonstandard extension used : nameless struct/union

Expand Down

0 comments on commit 4fcaac8

Please sign in to comment.