mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-08-23 10:11:49 +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 fmt;
|
||||||
import gpt4all.backend.main;
|
import gpt4all.backend.main;
|
||||||
import gpt4all.test.config;
|
import gpt4all.test.config;
|
||||||
|
|
||||||
#include <QLatin1StringView>
|
|
||||||
|
|
||||||
using gpt4all::backend::LLMProvider;
|
using gpt4all::backend::LLMProvider;
|
||||||
|
|
||||||
|
|
||||||
|
@ -391,6 +391,7 @@ qt_add_translations(chat
|
|||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(chat PROPERTIES
|
set_target_properties(chat PROPERTIES
|
||||||
|
CXX_SCAN_FOR_MODULES ON
|
||||||
WIN32_EXECUTABLE TRUE
|
WIN32_EXECUTABLE TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -2,8 +2,6 @@
|
|||||||
|
|
||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
|
|
||||||
#include <fmt/format.h>
|
|
||||||
|
|
||||||
#include <QAnyStringView>
|
#include <QAnyStringView>
|
||||||
#include <QCoreApplication>
|
#include <QCoreApplication>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
@ -30,6 +28,8 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
|
|
||||||
|
import fmt;
|
||||||
|
|
||||||
using namespace Qt::Literals::StringLiterals;
|
using namespace Qt::Literals::StringLiterals;
|
||||||
|
|
||||||
//#define DEBUG
|
//#define DEBUG
|
||||||
|
@ -11,7 +11,6 @@
|
|||||||
#include "toolmodel.h"
|
#include "toolmodel.h"
|
||||||
#include "toolcallparser.h"
|
#include "toolcallparser.h"
|
||||||
|
|
||||||
#include <fmt/format.h>
|
|
||||||
#include <minja/minja.hpp>
|
#include <minja/minja.hpp>
|
||||||
#include <nlohmann/json.hpp>
|
#include <nlohmann/json.hpp>
|
||||||
|
|
||||||
@ -62,6 +61,8 @@
|
|||||||
#include <utility>
|
#include <utility>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
import fmt;
|
||||||
|
|
||||||
using namespace Qt::Literals::StringLiterals;
|
using namespace Qt::Literals::StringLiterals;
|
||||||
using namespace ToolEnums;
|
using namespace ToolEnums;
|
||||||
namespace ranges = std::ranges;
|
namespace ranges = std::ranges;
|
||||||
|
@ -7,8 +7,6 @@
|
|||||||
#include "utils.h" // IWYU pragma: keep
|
#include "utils.h" // IWYU pragma: keep
|
||||||
#include "xlsxtomd.h"
|
#include "xlsxtomd.h"
|
||||||
|
|
||||||
#include <fmt/format.h>
|
|
||||||
|
|
||||||
#include <QAbstractListModel>
|
#include <QAbstractListModel>
|
||||||
#include <QBuffer>
|
#include <QBuffer>
|
||||||
#include <QByteArray>
|
#include <QByteArray>
|
||||||
@ -42,6 +40,8 @@
|
|||||||
#include <utility>
|
#include <utility>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
import fmt;
|
||||||
|
|
||||||
using namespace Qt::Literals::StringLiterals;
|
using namespace Qt::Literals::StringLiterals;
|
||||||
namespace ranges = std::ranges;
|
namespace ranges = std::ranges;
|
||||||
namespace views = std::views;
|
namespace views = std::views;
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
#include "utils.h" // IWYU pragma: keep
|
#include "utils.h" // IWYU pragma: keep
|
||||||
|
|
||||||
#include <duckx/duckx.hpp>
|
#include <duckx/duckx.hpp>
|
||||||
#include <fmt/format.h>
|
|
||||||
#include <usearch/index.hpp>
|
#include <usearch/index.hpp>
|
||||||
#include <usearch/index_plugins.hpp>
|
#include <usearch/index_plugins.hpp>
|
||||||
|
|
||||||
@ -42,6 +41,8 @@
|
|||||||
# include <fpdf_text.h>
|
# include <fpdf_text.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
import fmt;
|
||||||
|
|
||||||
using namespace Qt::Literals::StringLiterals;
|
using namespace Qt::Literals::StringLiterals;
|
||||||
namespace ranges = std::ranges;
|
namespace ranges = std::ranges;
|
||||||
namespace us = unum::usearch;
|
namespace us = unum::usearch;
|
||||||
|
@ -7,6 +7,8 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
|
|
||||||
|
import fmt;
|
||||||
|
|
||||||
namespace views = std::views;
|
namespace views = std::views;
|
||||||
using json = nlohmann::ordered_json;
|
using json = nlohmann::ordered_json;
|
||||||
|
|
||||||
|
@ -6,7 +6,6 @@
|
|||||||
#include "mysettings.h"
|
#include "mysettings.h"
|
||||||
#include "utils.h" // IWYU pragma: keep
|
#include "utils.h" // IWYU pragma: keep
|
||||||
|
|
||||||
#include <fmt/format.h>
|
|
||||||
#include <gpt4all-backend/llmodel.h>
|
#include <gpt4all-backend/llmodel.h>
|
||||||
|
|
||||||
#include <QByteArray>
|
#include <QByteArray>
|
||||||
@ -49,6 +48,8 @@
|
|||||||
#include <variant>
|
#include <variant>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
import fmt;
|
||||||
|
|
||||||
using namespace std::string_literals;
|
using namespace std::string_literals;
|
||||||
using namespace Qt::Literals::StringLiterals;
|
using namespace Qt::Literals::StringLiterals;
|
||||||
|
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <fmt/base.h>
|
|
||||||
#include <fmt/format.h>
|
|
||||||
|
|
||||||
#include <QByteArray>
|
#include <QByteArray>
|
||||||
#include <QJsonValue>
|
#include <QJsonValue>
|
||||||
#include <QLatin1StringView> // IWYU pragma: keep
|
#include <QLatin1StringView> // IWYU pragma: keep
|
||||||
@ -15,6 +12,8 @@
|
|||||||
#include <string_view>
|
#include <string_view>
|
||||||
#include <utility> // IWYU pragma: keep
|
#include <utility> // IWYU pragma: keep
|
||||||
|
|
||||||
|
import fmt;
|
||||||
|
|
||||||
// IWYU pragma: no_forward_declare QJsonValue
|
// IWYU pragma: no_forward_declare QJsonValue
|
||||||
class QJsonObject;
|
class QJsonObject;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user