-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This adds the following: * A `compile_commands` target for the ninja_build.sh script. This generates a `compile_commands.json` file, which is used by tools such as clangd, in a new target directory called `build.tooldata`. Unity builds must be disabled for the database to be complete; see [this Discord comment by Casper Jeukendrup](https://discord.com/channels/818804595450445834/939880479887327302/1001483416753143818) for more info. * Additionally, a configuration file for clangd has been created to tell it to find the file in the `build.tooldata` directory. * Add a one-line change to the workspace settings for VSCode, telling it where to find the Uncrustify config.
- Loading branch information
1 parent
9be710d
commit 1d8fbff
Showing
4 changed files
with
35 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
CompileFlags: | ||
CompilationDatabase: build.tooldata/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ | |
build.release | ||
build.debug | ||
build.install | ||
build.tooldata | ||
build.qtc | ||
build-* | ||
win32build | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters