Skip to content

Commit

Permalink
*: Use snake_case for source file names
Browse files Browse the repository at this point in the history
  • Loading branch information
yeetari committed Feb 1, 2024
1 parent d669243 commit 1b86a3a
Show file tree
Hide file tree
Showing 284 changed files with 1,866 additions and 1,866 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/code_style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
shell: bash
run: |
git config --global --add safe.directory $(pwd)
find . \( -name '*.cc' -or -name '*.hh' \) -and -not -name 'ContextTable.*' -and -not -name 'Vulkan.*' | xargs clang-format-16 -i
find . \( -name '*.cc' -or -name '*.hh' \) -and -not -name 'context_table.*' -and -not -name 'vulkan.*' | xargs clang-format-16 -i
git diff | tee format-diff
if [ -s format-diff ]; then exit 1; fi
Expand Down
22 changes: 11 additions & 11 deletions engine/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,17 @@ set_target_properties(vull-vulkan PROPERTIES
UNITY_BUILD ON
UNITY_BUILD_MODE GROUP)
set_source_files_properties(
sources/vulkan/Buffer.cc
sources/vulkan/CommandBuffer.cc
sources/vulkan/DescriptorBuilder.cc
sources/vulkan/Fence.cc
sources/vulkan/Image.cc
sources/vulkan/Pipeline.cc
sources/vulkan/QueryPool.cc
sources/vulkan/Queue.cc
sources/vulkan/Semaphore.cc
sources/vulkan/Shader.cc
sources/vulkan/Swapchain.cc
sources/vulkan/buffer.cc
sources/vulkan/command_buffer.cc
sources/vulkan/descriptor_builder.cc
sources/vulkan/fence.cc
sources/vulkan/image.cc
sources/vulkan/pipeline.cc
sources/vulkan/query_pool.cc
sources/vulkan/queue.cc
sources/vulkan/semaphore.cc
sources/vulkan/shader.cc
sources/vulkan/swapchain.cc
PROPERTIES UNITY_GROUP "vulkan-wrappers"
)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

#include <vull/support/Assert.hh>
#include <vull/support/Span.hh>
#include <vull/support/assert.hh>
#include <vull/support/span.hh>

#include <stdint.h>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

#include <vull/support/Span.hh>
#include <vull/support/Utility.hh>
#include <vull/support/span.hh>
#include <vull/support/utility.hh>

#include <stddef.h>
#include <stdint.h>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

#include <vull/container/HashSet.hh>
#include <vull/container/MapEntry.hh> // IWYU pragma: export
#include <vull/container/hash_set.hh>
#include <vull/container/map_entry.hh> // IWYU pragma: export

namespace vull {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#pragma once

#include <vull/container/Array.hh>
#include <vull/maths/Common.hh>
#include <vull/support/Hash.hh>
#include <vull/support/Optional.hh>
#include <vull/support/Utility.hh>
#include <vull/container/array.hh>
#include <vull/maths/common.hh>
#include <vull/support/hash.hh>
#include <vull/support/optional.hh>
#include <vull/support/utility.hh>

namespace vull {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include <vull/support/Hash.hh>
#include <vull/support/hash.hh>

namespace vull {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#pragma once

#include <vull/container/MapEntry.hh>
#include <vull/container/Vector.hh>
#include <vull/support/Optional.hh>
#include <vull/support/PerfectHasher.hh>
#include <vull/container/map_entry.hh>
#include <vull/container/vector.hh>
#include <vull/support/optional.hh>
#include <vull/support/perfect_hasher.hh>

namespace vull {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

#include <vull/container/Array.hh>
#include <vull/support/Utility.hh>
#include <vull/container/array.hh>
#include <vull/support/utility.hh>

#include <stdint.h>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#pragma once

#include <vull/maths/Common.hh>
#include <vull/support/Assert.hh>
#include <vull/support/Span.hh>
#include <vull/support/Utility.hh>
#include <vull/maths/common.hh>
#include <vull/support/assert.hh>
#include <vull/support/span.hh>
#include <vull/support/utility.hh>

#include <stddef.h>
#include <stdint.h>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#pragma once

#include <vull/container/Array.hh>
#include <vull/support/Atomic.hh>
#include <vull/support/Optional.hh> // IWYU pragma: keep
#include <vull/support/Utility.hh>
#include <vull/container/array.hh>
#include <vull/support/atomic.hh>
#include <vull/support/optional.hh> // IWYU pragma: keep
#include <vull/support/utility.hh>

#include <stdint.h>

Expand Down
6 changes: 0 additions & 6 deletions engine/include/vull/core/Main.hh

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#pragma once

#include <vull/core/BuiltinComponents.hh>
#include <vull/ecs/Component.hh>
#include <vull/maths/Common.hh>
#include <vull/maths/Relational.hh>
#include <vull/maths/Vec.hh>
#include <vull/scene/Transform.hh>
#include <vull/core/builtin_components.hh>
#include <vull/ecs/component.hh>
#include <vull/maths/common.hh>
#include <vull/maths/relational.hh>
#include <vull/maths/vec.hh>
#include <vull/scene/transform.hh>

namespace vull {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#pragma once

#include <vull/core/BuiltinComponents.hh>
#include <vull/ecs/Component.hh>
#include <vull/maths/Vec.hh>
#include <vull/core/builtin_components.hh>
#include <vull/ecs/component.hh>
#include <vull/maths/vec.hh>

namespace vull {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include <vull/maths/Vec.hh>
#include <vull/maths/vec.hh>

#include <stdint.h>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#pragma once

#include <vull/platform/Timer.hh>
#include <vull/support/String.hh>
#include <vull/support/StringBuilder.hh>
#include <vull/support/StringView.hh>
#include <vull/support/Utility.hh>
#include <vull/platform/timer.hh>
#include <vull/support/string.hh>
#include <vull/support/string_builder.hh>
#include <vull/support/string_view.hh>
#include <vull/support/utility.hh>

#include <stdint.h>

Expand Down
6 changes: 6 additions & 0 deletions engine/include/vull/core/main.hh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#pragma once

#include <vull/container/vector.hh>
#include <vull/support/string_view.hh>

void vull_main(vull::Vector<vull::StringView> &&args);
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#pragma once

#include <vull/container/Array.hh>
#include <vull/container/HashMap.hh>
#include <vull/core/Input.hh>
#include <vull/maths/Vec.hh>
#include <vull/support/Function.hh>
#include <vull/support/Optional.hh>
#include <vull/vulkan/Swapchain.hh>
#include <vull/vulkan/Vulkan.hh>
#include <vull/container/array.hh>
#include <vull/container/hash_map.hh>
#include <vull/core/input.hh>
#include <vull/maths/vec.hh>
#include <vull/support/function.hh>
#include <vull/support/optional.hh>
#include <vull/vulkan/swapchain.hh>
#include <vull/vulkan/vulkan.hh>

#include <stdint.h>

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#pragma once

#include <vull/container/Vector.hh>
#include <vull/ecs/EntityId.hh>
#include <vull/ecs/SparseSet.hh>
#include <vull/support/Optional.hh>
#include <vull/support/Tuple.hh>
#include <vull/support/Utility.hh>
#include <vull/container/vector.hh>
#include <vull/ecs/entity_id.hh>
#include <vull/ecs/sparse_set.hh>
#include <vull/support/optional.hh>
#include <vull/support/tuple.hh>
#include <vull/support/utility.hh>

namespace vull {

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#pragma once

#include <vull/container/Vector.hh>
#include <vull/support/Assert.hh>
#include <vull/support/Function.hh>
#include <vull/support/Stream.hh>
#include <vull/support/Utility.hh>
#include <vull/container/vector.hh>
#include <vull/support/assert.hh>
#include <vull/support/function.hh>
#include <vull/support/stream.hh>
#include <vull/support/utility.hh>

namespace vull {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#pragma once

#include <vull/ecs/Entity.hh>
#include <vull/support/Result.hh>
#include <vull/support/StringView.hh>
#include <vull/ecs/entity.hh>
#include <vull/support/result.hh>
#include <vull/support/string_view.hh>

namespace vull::vpak {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#pragma once

#include <vull/container/Array.hh>
#include <vull/container/HashMap.hh>
#include <vull/graphics/TextureStreamer.hh>
#include <vull/maths/Mat.hh>
#include <vull/maths/Vec.hh>
#include <vull/support/String.hh>
#include <vull/vulkan/Buffer.hh>
#include <vull/vulkan/Pipeline.hh>
#include <vull/vulkan/Vulkan.hh>
#include <vull/container/array.hh>
#include <vull/container/hash_map.hh>
#include <vull/graphics/texture_streamer.hh>
#include <vull/maths/mat.hh>
#include <vull/maths/vec.hh>
#include <vull/support/string.hh>
#include <vull/vulkan/buffer.hh>
#include <vull/vulkan/pipeline.hh>
#include <vull/vulkan/vulkan.hh>

#include <stdint.h>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

#include <vull/vulkan/Pipeline.hh>
#include <vull/vulkan/Vulkan.hh>
#include <vull/vulkan/pipeline.hh>
#include <vull/vulkan/vulkan.hh>

namespace vull::vk {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#pragma once

#include <vull/container/HashMap.hh>
#include <vull/container/Vector.hh>
#include <vull/support/UniquePtr.hh>
#include <vull/vulkan/Fence.hh>
#include <vull/vulkan/Semaphore.hh>
#include <vull/container/hash_map.hh>
#include <vull/container/vector.hh>
#include <vull/support/unique_ptr.hh>
#include <vull/vulkan/fence.hh>
#include <vull/vulkan/semaphore.hh>

#include <stdint.h>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include <vull/vulkan/RenderGraphDefs.hh>
#include <vull/vulkan/render_graph_defs.hh>

namespace vull {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#pragma once

#include <vull/core/BuiltinComponents.hh>
#include <vull/ecs/Component.hh>
#include <vull/support/String.hh>
#include <vull/support/Utility.hh>
#include <vull/core/builtin_components.hh>
#include <vull/ecs/component.hh>
#include <vull/support/string.hh>
#include <vull/support/utility.hh>

namespace vull {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#pragma once

#include <vull/core/BuiltinComponents.hh>
#include <vull/ecs/Component.hh>
#include <vull/support/String.hh>
#include <vull/support/Utility.hh>
#include <vull/core/builtin_components.hh>
#include <vull/ecs/component.hh>
#include <vull/support/string.hh>
#include <vull/support/utility.hh>

namespace vull {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

#include <vull/vulkan/Buffer.hh>
#include <vull/vulkan/Pipeline.hh>
#include <vull/vulkan/buffer.hh>
#include <vull/vulkan/pipeline.hh>

namespace vull::vk {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#pragma once

#include <vull/vulkan/Image.hh>
#include <vull/vulkan/Pipeline.hh>
#include <vull/vulkan/Vulkan.hh>
#include <vull/vulkan/image.hh>
#include <vull/vulkan/pipeline.hh>
#include <vull/vulkan/vulkan.hh>

namespace vull::vk {

Expand Down
Loading

0 comments on commit 1b86a3a

Please sign in to comment.