Skip to content

Commit

Permalink
Update configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
audio-engineer committed Dec 7, 2023
1 parent ffe5fab commit 01d24d6
Show file tree
Hide file tree
Showing 10 changed files with 79 additions and 4 deletions.
17 changes: 17 additions & 0 deletions .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,20 @@ performance-*,
portability-*,
readability-*'
FormatStyle: file
CheckOptions:
concurrency-mt-unsafe.FunctionSet: posix
# See https://google.github.io/styleguide/cppguide.html
readability-identifier-naming.ConstantCase: CamelCase
readability-identifier-naming.ConstantPrefix: k
readability-identifier-naming.ConstantMemberCase: CamelCase
readability-identifier-naming.ConstantMemberPrefix: k
readability-identifier-naming.ConstantParameterCase: lower_case
readability-identifier-naming.EnumCase: CamelCase
readability-identifier-naming.EnumConstantCase: CamelCase
readability-identifier-naming.EnumConstantPrefix: k
readability-identifier-naming.FunctionCase: CamelCase
readability-identifier-naming.MemberCase: lower_case
readability-identifier-naming.ParameterCase: lower_case
readability-identifier-naming.StructCase: CamelCase
readability-identifier-naming.TypedefCase: CamelCase
readability-identifier-naming.VariableCase: lower_case
5 changes: 5 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@ root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.{h,c}]
indent_style = space
indent_size = 2

[*.md]
trim_trailing_whitespace = false
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -175,3 +175,7 @@ fabric.properties

# Android studio 3.1+ serialized cache file
.idea/caches/build_file_checksums.ser


# Added by the developer
!/.vscode/c_cpp_properties.json
8 changes: 8 additions & 0 deletions .idea/cmake.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"configurations": [
{
"name": "CMake",
"configurationProvider": "ms-vscode.cmake-tools"
}
],
"version": 4
}
6 changes: 6 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"recommendations": [
"ms-vscode.cpptools-extension-pack",
"editorconfig.editorconfig"
]
}
10 changes: 10 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"C_Cpp.codeAnalysis.clangTidy.enabled": true,
"cmake.buildDirectory": "${workspaceFolder}/cmake-build-debug/",
"cmake.parallelJobs": 10,
"files.associations": {
"*.c": "c",
"*.h": "c",
"*.cc": "cpp"
}
}
16 changes: 16 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "cmake",
"label": "CMake: build",
"command": "build",
"targets": [
"singly_linked_list"
],
"group": "build",
"problemMatcher": [],
"detail": "CMake template build task"
}
]
}
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ set(CMAKE_C_STANDARD 23)
set(CMAKE_C_STANDARD_REQUIRED ON)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

file(GLOB SRC_FILES src/*.c src/*.h)
add_executable(${PROJECT_NAME} ${SRC_FILES})
add_executable(${PROJECT_NAME} src/main.c)
target_include_directories(${PROJECT_NAME} PRIVATE src/)

0 comments on commit 01d24d6

Please sign in to comment.