WIP: fix import order and enable module scanning

This commit is contained in:
Jared Van Bortel 2025-02-20 15:53:36 -05:00
parent 196c387bf7
commit 97a2e18149
9 changed files with 17 additions and 12 deletions

View File

@ -1,9 +1,9 @@
#include <QLatin1StringView>
import fmt;
import gpt4all.backend.main;
import gpt4all.test.config;
#include <QLatin1StringView>
using gpt4all::backend::LLMProvider;

View File

@ -391,6 +391,7 @@ qt_add_translations(chat
)
set_target_properties(chat PROPERTIES
CXX_SCAN_FOR_MODULES ON
WIN32_EXECUTABLE TRUE
)

View File

@ -2,8 +2,6 @@
#include "utils.h"
#include <fmt/format.h>
#include <QAnyStringView>
#include <QCoreApplication>
#include <QDebug>
@ -30,6 +28,8 @@
#include <iostream>
#include <utility>
import fmt;
using namespace Qt::Literals::StringLiterals;
//#define DEBUG

View File

@ -11,7 +11,6 @@
#include "toolmodel.h"
#include "toolcallparser.h"
#include <fmt/format.h>
#include <minja/minja.hpp>
#include <nlohmann/json.hpp>
@ -62,6 +61,8 @@
#include <utility>
#include <vector>
import fmt;
using namespace Qt::Literals::StringLiterals;
using namespace ToolEnums;
namespace ranges = std::ranges;

View File

@ -7,8 +7,6 @@
#include "utils.h" // IWYU pragma: keep
#include "xlsxtomd.h"
#include <fmt/format.h>
#include <QAbstractListModel>
#include <QBuffer>
#include <QByteArray>
@ -42,6 +40,8 @@
#include <utility>
#include <vector>
import fmt;
using namespace Qt::Literals::StringLiterals;
namespace ranges = std::ranges;
namespace views = std::views;

View File

@ -4,7 +4,6 @@
#include "utils.h" // IWYU pragma: keep
#include <duckx/duckx.hpp>
#include <fmt/format.h>
#include <usearch/index.hpp>
#include <usearch/index_plugins.hpp>
@ -42,6 +41,8 @@
# include <fpdf_text.h>
#endif
import fmt;
using namespace Qt::Literals::StringLiterals;
namespace ranges = std::ranges;
namespace us = unum::usearch;

View File

@ -7,6 +7,8 @@
#include <string>
#include <utility>
import fmt;
namespace views = std::views;
using json = nlohmann::ordered_json;

View File

@ -6,7 +6,6 @@
#include "mysettings.h"
#include "utils.h" // IWYU pragma: keep
#include <fmt/format.h>
#include <gpt4all-backend/llmodel.h>
#include <QByteArray>
@ -49,6 +48,8 @@
#include <variant>
#include <vector>
import fmt;
using namespace std::string_literals;
using namespace Qt::Literals::StringLiterals;

View File

@ -1,8 +1,5 @@
#pragma once
#include <fmt/base.h>
#include <fmt/format.h>
#include <QByteArray>
#include <QJsonValue>
#include <QLatin1StringView> // IWYU pragma: keep
@ -15,6 +12,8 @@
#include <string_view>
#include <utility> // IWYU pragma: keep
import fmt;
// IWYU pragma: no_forward_declare QJsonValue
class QJsonObject;