Squash improve-ide-compat into main

Fixes GH-5

- cppcheck replaced with clang-tidy
- clang-tidy lint warnings fixed
- Reworked build tools from scratch to make IDE setup easier
- Added 1.5 IDE setup guides
This commit is contained in:
2023-11-10 21:30:55 +01:00
parent 189d19fd4a
commit ae4e265a90
66 changed files with 2017 additions and 1498 deletions

View File

@@ -3,10 +3,9 @@
#include "vulkan_adapter.h"
#include "vulkan_common.h"
namespace progressia {
namespace desktop {
namespace progressia::desktop {
RenderPass::RenderPass(Vulkan &vulkan) : vulkan(vulkan) {
RenderPass::RenderPass(Vulkan &vulkan) : vk(), vulkan(vulkan) {
std::vector<VkAttachmentDescription> attachmentDescriptions;
std::vector<VkAttachmentReference> attachmentReferences;
@@ -15,8 +14,8 @@ RenderPass::RenderPass(Vulkan &vulkan) : vulkan(vulkan) {
for (std::size_t i = 0; i < attachments.size(); i++) {
const auto &attachment = attachments[i];
VkAttachmentDescription *desc;
VkAttachmentReference *ref;
VkAttachmentDescription *desc = nullptr;
VkAttachmentReference *ref = nullptr;
attachmentDescriptions.push_back({});
desc = &attachmentDescriptions.back();
@@ -79,5 +78,4 @@ RenderPass::~RenderPass() {
VkRenderPass RenderPass::getVk() { return vk; }
} // namespace desktop
} // namespace progressia
} // namespace progressia::desktop