sys: More cleanup

This commit is contained in:
WerWolv
2022-09-07 23:11:24 +02:00
parent cfde9939b4
commit d990ee102a
8 changed files with 7 additions and 14 deletions

View File

@@ -14,10 +14,6 @@
#include <nlohmann/json.hpp>
namespace pl {
class PatternLanguage;
}
namespace hex::prv {
class Provider {

View File

@@ -52,9 +52,8 @@ add_library(${PROJECT_NAME} SHARED
source/content/views/view_provider_settings.cpp
source/content/views/view_find.cpp
source/content/helpers/math_evaluator.cpp
source/content/helpers/pattern_drawer.cpp
source/pattern_drawer.cpp
source/lang/de_DE.cpp
source/lang/en_US.cpp

View File

@@ -98,7 +98,7 @@ namespace hex {
};
static i16 comparePrecedence(const Operator &a, const Operator &b);
static bool isLeftAssociative(const Operator op);
static bool isLeftAssociative(const Operator &op);
static std::pair<Operator, size_t> toOperator(const std::string &input);
private:

View File

@@ -5,7 +5,7 @@
#include <hex/helpers/utils.hpp>
#include <hex/helpers/fmt.hpp>
#include "math_evaluator.hpp"
#include <content/helpers/math_evaluator.hpp>
namespace hex::plugin::builtin {

View File

@@ -1,4 +1,4 @@
#include "math_evaluator.hpp"
#include <content/helpers/math_evaluator.hpp>
#include <hex/helpers/utils.hpp>
#include <hex/helpers/concepts.hpp>
@@ -6,7 +6,6 @@
#include <string>
#include <queue>
#include <stack>
#include <stdexcept>
#include <cmath>
#include <cstdint>
#include <optional>
@@ -19,7 +18,7 @@ namespace hex {
}
template<typename T>
bool MathEvaluator<T>::isLeftAssociative(const Operator op) {
bool MathEvaluator<T>::isLeftAssociative(const Operator &op) {
return (static_cast<u32>(op) & 0xF00) == 0;
}

View File

@@ -19,7 +19,7 @@
#include <limits>
#include <llvm/Demangle/Demangle.h>
#include "math_evaluator.hpp"
#include <content/helpers/math_evaluator.hpp>
#include <imgui.h>
#define IMGUI_DEFINE_MATH_OPERATORS

View File

@@ -5,7 +5,7 @@
#include <hex/providers/buffered_reader.hpp>
#include <hex/helpers/crypto.hpp>
#include "math_evaluator.hpp"
#include <content/helpers/math_evaluator.hpp>
#include <imgui_internal.h>
#include <nlohmann/json.hpp>

View File

@@ -2,7 +2,6 @@
#include <hex/providers/provider.hpp>
#include <pl/pattern_language.hpp>
#include <pl/patterns/pattern.hpp>
#include <provider_extra_data.hpp>