Author Topic: A new plugin: Clang compilation database generator  (Read 7466 times)

Offline yvesdm3000

  • Almost regular
  • **
  • Posts: 225
A new plugin: Clang compilation database generator
« on: December 10, 2016, 08:46:56 pm »
Clang based code completion for Code::Blocks:   http://github.com/yvesdm3000/ClangLib

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: A new plugin: Clang compilation database generator
« Reply #1 on: December 11, 2016, 12:40:05 am »
Have you tried the plugin on linux?
I doubt it will work there because I see \r\n all over the code.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline yvesdm3000

  • Almost regular
  • **
  • Posts: 225
Re: A new plugin: Clang compilation database generator
« Reply #2 on: December 11, 2016, 02:45:43 am »
That is correct, it only has a windows project for now as a first step. I need to see how it reacts on linux the following days and I'll fix the issues that I encounter.

Yves
Clang based code completion for Code::Blocks:   http://github.com/yvesdm3000/ClangLib

Offline yvesdm3000

  • Almost regular
  • **
  • Posts: 225
Re: A new plugin: Clang compilation database generator
« Reply #3 on: December 12, 2016, 09:19:18 pm »
The last commit now has a unix .cbp file. I installed the .so and the .zip file manually, I don't know if the generated .cbplugin file works.

Known issues:
  • Only full paths generated
  • Treats headerfiles and other resource files as source files.
  • Doesn't take the 'extra' compile options from the ClangCC plugin yet. Not sure if this is a big problem.
  • No configuration GUI yet

Yves
Clang based code completion for Code::Blocks:   http://github.com/yvesdm3000/ClangLib