Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions .clang-tidy
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
Checks: '-*,readability-identifier-naming'
CheckOptions:
# Namespace: lowercase
- { key: readability-identifier-naming.NamespaceCase, value: lower_case }

# Class/Struct: strip C/S prefix, snake_case
- { key: readability-identifier-naming.ClassCase, value: lower_case }
- { key: readability-identifier-naming.ClassPrefix, value: 'C' }
- { key: readability-identifier-naming.StructCase, value: lower_case }
- { key: readability-identifier-naming.StructPrefix, value: 'S' }
- { key: readability-identifier-naming.UnionCase, value: lower_case }
- { key: readability-identifier-naming.EnumCase, value: lower_case }
- { key: readability-identifier-naming.ScopedEnumCase, value: lower_case }
- { key: readability-identifier-naming.EnumPrefix, value: 'E' }
- { key: readability-identifier-naming.TypedefCase, value: lower_case }
- { key: readability-identifier-naming.TypeAliasCase, value: lower_case }
- { key: readability-identifier-naming.TemplateParameterCase, value: lower_case }

# Function/Method: snake_case
- { key: readability-identifier-naming.FunctionCase, value: lower_case }
- { key: readability-identifier-naming.GlobalFunctionCase, value: lower_case }
- { key: readability-identifier-naming.MethodCase, value: lower_case }

# Variables: snake_case
- { key: readability-identifier-naming.VariableCase, value: lower_case }
- { key: readability-identifier-naming.GlobalVariableCase, value: lower_case }
- { key: readability-identifier-naming.MemberCase, value: lower_case }
- { key: readability-identifier-naming.PrivateMemberCase, value: lower_case }
- { key: readability-identifier-naming.ProtectedMemberCase, value: lower_case }
- { key: readability-identifier-naming.PublicMemberCase, value: lower_case }
- { key: readability-identifier-naming.ConstantCase, value: lower_case }
- { key: readability-identifier-naming.ConstantMemberCase, value: lower_case }
- { key: readability-identifier-naming.StaticConstantCase, value: lower_case }

# Members: strip m prefix, add trailing _
- { key: readability-identifier-naming.MemberPrefix, value: 'm' }
- { key: readability-identifier-naming.MemberSuffix, value: '_' }
- { key: readability-identifier-naming.PrivateMemberPrefix, value: 'm' }
- { key: readability-identifier-naming.PrivateMemberSuffix, value: '_' }
- { key: readability-identifier-naming.ProtectedMemberPrefix, value: 'm' }
- { key: readability-identifier-naming.ProtectedMemberSuffix, value: '_' }

# Parameter: strip p prefix, snake_case
- { key: readability-identifier-naming.ParameterCase, value: lower_case }
- { key: readability-identifier-naming.ParameterPrefix, value: 'p' }
- { key: readability-identifier-naming.ParameterPackCase, value: lower_case }

# Enum values: snake_case
- { key: readability-identifier-naming.EnumConstantCase, value: lower_case }

# Macro: keep UPPER_CASE
- { key: readability-identifier-naming.MacroDefinitionCase, value: UPPER_CASE }
12 changes: 6 additions & 6 deletions ARC-Editor/src/EditorApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
#include "EditorApp.h"
#include "EditorLayer.h"

namespace ARC {
CApplication* CreateApplication()
namespace arc {
application* create_application()
{
return new CEditorApp();
return new editor_app();
}
CEditorApp::CEditorApp() :
CApplication("ARC-Editor")
editor_app::editor_app() :
application("ARC-Editor")
{
PushLayer(new CEditorLayer());
push_layer(new editor_layer());
}
}
10 changes: 5 additions & 5 deletions ARC-Editor/src/EditorApp.h
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#pragma once
#include "ARC/Core/Application.h"

namespace ARC {
class CEditorApp : public ARC::CApplication
namespace arc {
class editor_app : public arc::application
{
public:
CEditorApp();
~CEditorApp() {};
editor_app();
~editor_app() {};

inline virtual std::string GetAppName() override { return "ARC-Editor"; };
inline virtual std::string get_app_name() override { return "ARC-Editor"; };
};
}
Loading