Skip to content

Commit 1db37e6

Browse files
committed
Bug Fixes and Performance Improvements
1 parent e038067 commit 1db37e6

File tree

75 files changed

+7027
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+7027
-2
lines changed

.github/workflows/codeql.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,21 @@ jobs:
1414

1515
steps:
1616
- name: Checkout code
17-
uses: actions/checkout@v4
17+
uses: actions/checkout@v2
1818

1919
- name: Install C++ tools
2020
run: sudo apt-get update && sudo apt-get install -y clang clang-tidy cppcheck cmake
2121

22+
- name: List directory contents
23+
run: ls -R
24+
25+
- name: Check for CMakeLists.txt
26+
run: |
27+
if [ ! -f ./CMakeLists.txt ]; then
28+
echo "CMakeLists.txt not found in the root directory."
29+
exit 1
30+
fi
31+
2232
- name: Create build directory
2333
run: mkdir build
2434

@@ -35,7 +45,7 @@ jobs:
3545
run: find . -name '*.cpp' | xargs clang-tidy -p build
3646

3747
- name: Upload cppcheck results
38-
uses: actions/upload-artifact@v3
48+
uses: actions/upload-artifact@v2
3949
with:
4050
name: cppcheck-result
4151
path: cppcheck-result.xml

CMakeLists.txt

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
cmake_minimum_required(VERSION 3.10)
2+
3+
# Set the project name and version
4+
project(BusReservationSystem VERSION 1.0)
5+
6+
# Specify the C++ standard
7+
set(CMAKE_CXX_STANDARD 11)
8+
set(CMAKE_CXX_STANDARD_REQUIRED True)
9+
10+
# Add the executable
11+
add_executable(BusReservationSystem src/main.cpp)
12+
13+
# Include directories if needed
14+
include_directories(${PROJECT_SOURCE_DIR}/src)
15+
16+
# Link libraries if needed
17+
# target_link_libraries(BusReservationSystem <library_name>)

CMakePresets.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"version": 8,
3+
"configurePresets": [
4+
{
5+
"name": "Clang 18.1.6 x86_64-pc-windows-msvc",
6+
"displayName": "Clang 18.1.6 x86_64-pc-windows-msvc",
7+
"description": "Using compilers: C = C:\\Program Files\\LLVM\\bin\\clang.exe, CXX = C:\\Program Files\\LLVM\\bin\\clang++.exe",
8+
"binaryDir": "${sourceDir}/out/build/${presetName}",
9+
"cacheVariables": {
10+
"CMAKE_INSTALL_PREFIX": "${sourceDir}/out/install/${presetName}",
11+
"CMAKE_C_COMPILER": "C:/Program Files/LLVM/bin/clang.exe",
12+
"CMAKE_CXX_COMPILER": "C:/Program Files/LLVM/bin/clang++.exe",
13+
"CMAKE_BUILD_TYPE": "Debug"
14+
}
15+
}
16+
]
17+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"requests":[{"kind":"cache","version":2},{"kind":"codemodel","version":2},{"kind":"toolchains","version":1},{"kind":"cmakeFiles","version":1}]}

0 commit comments

Comments
 (0)