Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
9555e7a
Add CODEOWNERS file
Monrealle Oct 8, 2025
4636b4c
Merge pull request #11 from Monrealle/master
Monrealle Oct 8, 2025
2a42115
Update CODEOWNERS (Add @Monrealle)
Monrealle Oct 16, 2025
3c47b2c
Merge pull request #12 from Monrealle/Monrealle-patch-1
Monrealle Oct 16, 2025
cbb0b34
[200~clang-format в CI
Monrealle Dec 3, 2025
a72a51a
Merge branch 'main' of https://github.com/Monrealle/C_homework
Monrealle Dec 3, 2025
d2978ad
Update build-and-lint.yml
Monrealle Dec 3, 2025
66e2769
Fix code formatting
Monrealle Dec 3, 2025
176c1e9
Update build-and-lint.yml
Monrealle Dec 3, 2025
d98b1c6
Homework #1 has been moved to the repository and a SMake has been cre…
Monrealle Dec 3, 2025
22ce080
Fix build-and-lint.yml
Monrealle Dec 3, 2025
11b680c
Fix build-and-lint.yml
Monrealle Dec 3, 2025
f38df2b
Fix build-and-lint.yml 3
Monrealle Dec 3, 2025
4e54567
CMake for homework 2
Monrealle Dec 3, 2025
7af94c5
CMake for homework 3
Monrealle Dec 3, 2025
03309f6
Task_2, Task_3, Task_2 have been rewriting. (Chapter 2)
Monrealle Dec 22, 2025
0b00333
2.Style-guide to clang format
Monrealle Dec 22, 2025
24c463d
Update build-and-lint.yml
Monrealle Dec 22, 2025
c88e2db
Update file .gitignore
Monrealle Dec 22, 2025
ec943ef
Task_1 Task_2 Task_3 in 3.Compilation-process complete | Rewrite
Monrealle Dec 22, 2025
6b6743e
3.Compilation-process to clang format
Monrealle Dec 22, 2025
6e28a75
Task_2 update
Monrealle Dec 28, 2025
6ef87e2
Incomplete-quotient.c to clang format
Monrealle Dec 28, 2025
ca4fd56
Update Task_3
Monrealle Dec 28, 2025
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
6 changes: 6 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
BasedOnStyle: WebKit
IndentWidth: 4
ColumnLimit: 80
AllowShortFunctionsOnASingleLine: None
BreakBeforeBraces: Allman
PointerAlignment: Left
22 changes: 22 additions & 0 deletions .github/workflows/build-and-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Build and Lint

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y clang-format cmake make gcc

- name: Check format
run: |
find . -type f \( -name "*.c" -o -name "*.h" \) \
! -path "*/build/*" \
! -path "*/.git/*" \
! -path "*/Control-works/*" \
| xargs clang-format --style=file --dry-run -Werror
22 changes: 22 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,23 @@
# Build
build/
*.exe
*.out

# Object files
*.o
*.obj

# Libraries
*.a
*.so
*.dylib

# CMake
CMakeCache.txt
CMakeFiles/
.CMakeLists.txt.swp
cmake_install.cmake
Makefile

# IDE
.vscode/
12 changes: 12 additions & 0 deletions 1.Introduction-to-C-and-problem-analysis/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
cmake_minimum_required(VERSION 3.10)

project(Lists)

set(CMAKE_C_STANDARD 11)
set(CMAKE_C_STANDARD_REQUIRED ON)

add_executable(Task_1
src/Task_1/main.c
)

target_compile_options(Task_1 PRIVATE -Wall -Wextra)
Loading