Skip to content

Commit

Permalink
Bug Fixes and Performance Improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
nixrajput committed Jul 23, 2024
1 parent e038067 commit 1db37e6
Show file tree
Hide file tree
Showing 75 changed files with 7,027 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,21 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v2

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

- name: List directory contents
run: ls -R

- name: Check for CMakeLists.txt
run: |
if [ ! -f ./CMakeLists.txt ]; then
echo "CMakeLists.txt not found in the root directory."
exit 1
fi
- name: Create build directory
run: mkdir build

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

- name: Upload cppcheck results
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v2
with:
name: cppcheck-result
path: cppcheck-result.xml
17 changes: 17 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
cmake_minimum_required(VERSION 3.10)

# Set the project name and version
project(BusReservationSystem VERSION 1.0)

# Specify the C++ standard
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED True)

# Add the executable
add_executable(BusReservationSystem src/main.cpp)

# Include directories if needed
include_directories(${PROJECT_SOURCE_DIR}/src)

# Link libraries if needed
# target_link_libraries(BusReservationSystem <library_name>)
17 changes: 17 additions & 0 deletions CMakePresets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"version": 8,
"configurePresets": [
{
"name": "Clang 18.1.6 x86_64-pc-windows-msvc",
"displayName": "Clang 18.1.6 x86_64-pc-windows-msvc",
"description": "Using compilers: C = C:\\Program Files\\LLVM\\bin\\clang.exe, CXX = C:\\Program Files\\LLVM\\bin\\clang++.exe",
"binaryDir": "${sourceDir}/out/build/${presetName}",
"cacheVariables": {
"CMAKE_INSTALL_PREFIX": "${sourceDir}/out/install/${presetName}",
"CMAKE_C_COMPILER": "C:/Program Files/LLVM/bin/clang.exe",
"CMAKE_CXX_COMPILER": "C:/Program Files/LLVM/bin/clang++.exe",
"CMAKE_BUILD_TYPE": "Debug"
}
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"requests":[{"kind":"cache","version":2},{"kind":"codemodel","version":2},{"kind":"toolchains","version":1},{"kind":"cmakeFiles","version":1}]}
Loading

0 comments on commit 1db37e6

Please sign in to comment.