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:
@@ -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,...
|
||||
|
||||
Reference in New Issue
Block a user