Question about tooling and stiling

48 views
Skip to first unread message

Luca Saccarola

unread,
Feb 12, 2024, 9:55:48 AM2/12/24
to vim...@vim.org
Hi,
I was experimenting with setting up clangd and clang-format for the
codebase. I've read the `:h develop` but I still have missing
information.

1. Tabs or spaces? The documentation doesn't specify it and the source
files sometimes mix spaces and tabs.
2. What parts of C99 are supported? There are some listed but there are
more?

There are some recommended tooling for develop, analyze the vim
source code? It would be welcomed if I setup some tooling if none
are there?

-- Luca Saccarola


Yegappan Lakshmanan

unread,
Feb 12, 2024, 12:16:47 PM2/12/24
to vim...@googlegroups.com, vim...@vim.org
Hi,

On Mon, Feb 12, 2024 at 6:55 AM Luca Saccarola
<luca.sa...@saccarosium.com> wrote:
>
> Hi,
> I was experimenting with setting up clangd and clang-format for the
> codebase. I've read the `:h develop` but I still have missing
> information.
>
> 1. Tabs or spaces? The documentation doesn't specify it and the source
> files sometimes mix spaces and tabs.
>

The Vim source base uses 'softtabstop' (a mix of spaces and tabs):

https://vimhelp.org/options.txt.html#%27softtabstop%27

The following options are set for the source files through a modeline:

tabstop=8 softtabstop=4 shiftwidth=4 noexpandtab

> 2. What parts of C99 are supported? There are some listed but there are
> more?
>
> There are some recommended tooling for develop, analyze the vim
> source code? It would be welcomed if I setup some tooling if none
> are there?
>

I created https://gist.github.com/yegappan/1e88a9aed4f9f266d91d768b633487f3
to document
some of the steps that I follow for my contributions.

Regards,
Yegappan

shane.qian

unread,
Feb 14, 2024, 7:04:51 AM2/14/24
to vim...@googlegroups.com, vim...@vim.org
please check the 'CONTRIBUTING.md', there some links specially that 'how do i contribute',
maybe that would give you some idea.

--
shane.xb.qian

shane.qian

unread,
Feb 14, 2024, 7:18:26 AM2/14/24
to vim...@googlegroups.com, vim...@vim.org
and BTW: if you had some 'tooling' (IF Really was useful) please share at that link also,
// vs 'gist.github.com', since some people maybe not able to open pages from 'gist' site. :sigh:

--
shane.xb.qian
Reply all
Reply to author
Forward
0 new messages