Fix code.
This commit is contained in:
parent
9cf2aafd73
commit
4582c8600c
12
.vscode/c_cpp_properties.json
vendored
Normal file
12
.vscode/c_cpp_properties.json
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Linux",
|
||||
"compileCommands": "${workspaceFolder}/build/compile_commands.json",
|
||||
"intelliSenseMode": "gcc-x64",
|
||||
"cStandard": "c11",
|
||||
"cppStandard": "c++17"
|
||||
}
|
||||
],
|
||||
"version": 4
|
||||
}
|
|
@ -12,6 +12,8 @@ find_package(Qt5Concurrent REQUIRED)
|
|||
|
||||
find_package(Qt5 CONFIG REQUIRED COMPONENTS Qml Quick Gui Widgets Core X11Extras)
|
||||
|
||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||
|
||||
option(QML_DEBUG "enable qml debug" OFF)
|
||||
if(QML_DEBUG)
|
||||
add_definitions(-DQT_QML_DEBUG)
|
||||
|
|
|
@ -1,9 +1,15 @@
|
|||
// clang-format off
|
||||
#include <spdlog/spdlog.h> // IWYU pragma: export
|
||||
#include <spdlog/sinks/basic_file_sink.h> // IWYU pragma: export
|
||||
#include <spdlog/sinks/daily_file_sink.h> // IWYU pragma: export
|
||||
#include <spdlog/sinks/stdout_color_sinks.h> // IWYU pragma: export
|
||||
#include "spdlog/common.h"
|
||||
#include "spdlog/details/file_helper-inl.h"
|
||||
#include "spdlog/sinks/ansicolor_sink-inl.h"
|
||||
#include "spdlog/sinks/base_sink-inl.h"
|
||||
#include "spdlog/sinks/basic_file_sink-inl.h"
|
||||
#include "spdlog/spdlog-inl.h"
|
||||
// clang-format on
|
||||
#include <QByteArray>
|
||||
#include <QSettings>
|
||||
#include <QString>
|
||||
|
@ -11,11 +17,6 @@
|
|||
#include <iosfwd> // IWYU pragma: keep
|
||||
#include <iterator>
|
||||
#include <memory> // IWYU pragma: keep
|
||||
#include <spdlog/logger.h>
|
||||
#include <spdlog/sinks/basic_file_sink.h> // IWYU pragma: export
|
||||
#include <spdlog/sinks/daily_file_sink.h> // IWYU pragma: export
|
||||
#include <spdlog/sinks/stdout_color_sinks.h> // IWYU pragma: export
|
||||
#include <spdlog/spdlog.h> // IWYU pragma: export
|
||||
#include <vector>
|
||||
|
||||
std::shared_ptr<spdlog::logger>
|
||||
|
|
Loading…
Reference in a new issue