1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

Enable rule to enforce specifying language for code blocks

This commit is contained in:
Ivan Savenko
2024-12-05 20:39:29 +00:00
parent 7543635847
commit 53d4afdae5
16 changed files with 41 additions and 44 deletions

View File

@@ -4,12 +4,12 @@
* Enables debug info and disables optimizations
* `-D CMAKE_EXPORT_COMPILE_COMMANDS=ON`
* Creates `compile_commands.json` for [clangd](https://clangd.llvm.org/) language server. For clangd to find the JSON, create a file named `.clangd` with this content
```
```text
CompileFlags:
CompilationDatabase: build
```
and place it here:
```
```text
.
├── vcmi -> contains sources and is under git control
├── build -> contains build output, makefiles, object files,...