Skip to content

Commit

Permalink
added clangd config
Browse files Browse the repository at this point in the history
  • Loading branch information
inlife committed Feb 18, 2024
1 parent 17f18c9 commit 9f97176
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .clangd.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
CompileFlags:
Add: [
-Wall,
-Wextra,
-Werror,
-Wno-missing-field-initializers,
-Wno-unused-value,
-Wno-unused-function,
-Wno-missing-braces,
-I/absolute/path/to/librg/code,
-I/absolute/path/to/librg/code/vendor,
-DLIBRG_EDITOR=1,
-DLIBRG_IMPLEMENTATION=1,
]
Compiler: clang
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ build.sh
build.bat
package-lock.json

# configs
.clangd

# gtags
GPATH
GRTAGS
Expand Down

0 comments on commit 9f97176

Please sign in to comment.