Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .clangd
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CompileFlags:
CompilationDatabase: ext/rbs_extension
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,7 @@ lib/**/*.dll
doc/

**/*.gem

# For clangd's editor integration
ext/rbs_extension/compile_commands.json
ext/rbs_extension/.cache
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ gem "rdoc"
gem "fileutils"
gem "raap"
gem "activesupport", "~> 7.0"
gem "extconf_compile_commands_json"

group :libs do
# Libraries required for stdlib test
Expand Down
2 changes: 2 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ GEM
diff-lcs (1.6.2)
digest (3.2.0)
drb (2.2.1)
extconf_compile_commands_json (0.0.7)
ffi (1.17.2)
fileutils (1.7.3)
goodcheck (3.1.0)
Expand Down Expand Up @@ -184,6 +185,7 @@ DEPENDENCIES
csv
dbm
digest
extconf_compile_commands_json
fileutils
goodcheck
json
Expand Down
4 changes: 4 additions & 0 deletions ext/rbs_extension/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,7 @@
end

create_makefile 'rbs_extension'

require 'extconf_compile_commands_json'
ExtconfCompileCommandsJson.generate!
ExtconfCompileCommandsJson.symlink!