mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-08-18 07:58:04 +00:00
WIP: fix import order and enable module scanning
This commit is contained in:
parent
196c387bf7
commit
97a2e18149
@ -1,9 +1,9 @@
|
||||
#include <QLatin1StringView>
|
||||
|
||||
import fmt;
|
||||
import gpt4all.backend.main;
|
||||
import gpt4all.test.config;
|
||||
|
||||
#include <QLatin1StringView>
|
||||
|
||||
using gpt4all::backend::LLMProvider;
|
||||
|
||||
|
||||
|
@ -391,6 +391,7 @@ qt_add_translations(chat
|
||||
)
|
||||
|
||||
set_target_properties(chat PROPERTIES
|
||||
CXX_SCAN_FOR_MODULES ON
|
||||
WIN32_EXECUTABLE TRUE
|
||||
)
|
||||
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -7,6 +7,8 @@
|
||||
#include <string>
|
||||
#include <utility>
|
||||
|
||||
import fmt;
|
||||
|
||||
namespace views = std::views;
|
||||
using json = nlohmann::ordered_json;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user