[haiku-development] Re: haiku-format for C++ developers

  • From: Adrien Destugues <pulkomandy@xxxxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Wed, 8 Aug 2018 20:14:27 +0200

On Tue, Aug 07, 2018 at 12:17:48PM -0700, Owen Pan wrote:

I will look into integrating this into vim, too.


For vim (and other editors) integration, see here:
https://clang.llvm.org/docs/ClangFormat.html#vim-integration

This is not really the workflow I have in mind.

I usually run vim with YouCompleteMe
(https://valloric.github.io/YouCompleteMe/), which will compile my code
in the background and highlight places where there are syntax errors. It
would make sense for a coding style tool to do something similar (not
necessarily realtime, I'm fine with running it once I'm done writing the
code).

For this I would need a tool that tells me where there are problems,
rather than a tool that fixes the problems itself. Something like:

"file.cpp:line:column: some information about the problem"

From there I can set vim to highlight the given ranges, and show the
error messages when my sursor is over them.

-- 
Adrien.

Other related posts: