Class: ClangComplete
- Inherits:
-
CKick::Plugin
- Object
- CKick::Plugin
- ClangComplete
- Defined in:
- lib/ckick/plugin/clang_complete.rb
Instance Method Summary collapse
-
#call(project) ⇒ Object
Creates a .clang_complete file for clang auto completion.
- #clang_complete(project) ⇒ Object
Methods inherited from CKick::Plugin
#cmake, #include, #initialize, #lib, #name, #run, #to_hash
Constructor Details
This class inherits a constructor from CKick::Plugin
Instance Method Details
#call(project) ⇒ Object
Creates a .clang_complete file for clang auto completion
10 11 12 13 14 15 16 17 18 |
# File 'lib/ckick/plugin/clang_complete.rb', line 10 def call(project) def clang_complete project project.dependencies.flags.join("\n") end file = File.new(File.join(project.path, ".clang_complete"), 'w') file << clang_complete(project) << "\n" file.close end |
#clang_complete(project) ⇒ Object
11 12 13 |
# File 'lib/ckick/plugin/clang_complete.rb', line 11 def clang_complete project project.dependencies.flags.join("\n") end |