diff --git a/src/.clang-format b/.clang-format similarity index 100% rename from src/.clang-format rename to .clang-format diff --git a/CMakeLists.txt b/CMakeLists.txt index c8e47b420..dce8c768f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -76,7 +76,7 @@ file(GLOB_RECURSE OTHER_FILES_LIST CONFIGURE_DEPENDS CI/** docker/** docs/** - src/.clang-format + .clang-format src/.gitignore ) diff --git a/docs/CONTRIBUTING.md b/docs/CONTRIBUTING.md index d7319e4ab..818734968 100644 --- a/docs/CONTRIBUTING.md +++ b/docs/CONTRIBUTING.md @@ -31,7 +31,7 @@ signals: void profileChanged(const QString& name); ``` * in general: write modern C++20 code, but avoid C++ exceptions, templates, and concepts as those have performance/complexity considerations, avoiding which has made Mudlet the success it is today. -* use clang-format for formatting your code with [src/.clang-format](https://github.com/Mudlet/Mudlet/blob/development/src/.clang-format) settings. To get started, check out Clang Format in the [Setting up IDE's](https://wiki.mudlet.org/w/Compiling_Mudlet) section. +* use clang-format for formatting your code with [.clang-format](https://github.com/Mudlet/Mudlet/blob/development/.clang-format) settings. To get started, check out Clang Format in the [Setting up IDE's](https://wiki.mudlet.org/w/Compiling_Mudlet) section. * use clang-tidy linting with [.clang-tidy](https://github.com/Mudlet/Mudlet/blob/development/.clang-tidy) settings. To get started, check out Clang Tidy in the [Setting up IDE's](https://wiki.mudlet.org/w/Compiling_Mudlet) section * additionally, use [clazy]([url](https://github.com/KDE/clazy)) for linting as well * use braces {} around all statements (ie, `if`'s and so on), even if they are one line diff --git a/docs/ai-instructions.md b/docs/ai-instructions.md index 0a10154c9..36e213e41 100644 --- a/docs/ai-instructions.md +++ b/docs/ai-instructions.md @@ -182,7 +182,7 @@ On macOS, use the Homebrew-installed LLVM version to ensure compatibility: $(brew --prefix llvm)/bin/clang-format -i path/to/edited/file.cpp path/to/edited/file.h ``` -The project uses the `.clang-format` configuration in `src/`. This ensures consistent code style across the codebase. +The project uses the `.clang-format` configuration in the repo root. This ensures consistent code style across the codebase. ### Static analysis