File tree Expand file tree Collapse file tree 5 files changed +13
-0
lines changed
Expand file tree Collapse file tree 5 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 1+ CompileFlags :
2+ CompilationDatabase : ext/rbs_extension
Original file line number Diff line number Diff line change @@ -21,3 +21,7 @@ lib/**/*.dll
2121doc /
2222
2323** /* .gem
24+
25+ # For clangd's editor integration
26+ ext /rbs_extension /compile_commands.json
27+ ext /rbs_extension /.cache
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ gem "rdoc"
2020gem "fileutils"
2121gem "raap"
2222gem "activesupport" , "~> 7.0"
23+ gem "extconf_compile_commands_json"
2324
2425group :libs do
2526 # Libraries required for stdlib test
Original file line number Diff line number Diff line change 4040 diff-lcs (1.6.2 )
4141 digest (3.2.0 )
4242 drb (2.2.1 )
43+ extconf_compile_commands_json (0.0.7 )
4344 ffi (1.17.2 )
4445 fileutils (1.7.3 )
4546 goodcheck (3.1.0 )
@@ -184,6 +185,7 @@ DEPENDENCIES
184185 csv
185186 dbm
186187 digest
188+ extconf_compile_commands_json
187189 fileutils
188190 goodcheck
189191 json
Original file line number Diff line number Diff line change 2525end
2626
2727create_makefile 'rbs_extension'
28+
29+ require 'extconf_compile_commands_json'
30+ ExtconfCompileCommandsJson . generate!
31+ ExtconfCompileCommandsJson . symlink!
You can’t perform that action at this time.
0 commit comments