Bug 210426 - Add ccls config file to the list of ignored files
Summary: Add ccls config file to the list of ignored files
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Sergio Villar Senin
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-04-13 08:11 PDT by Sergio Villar Senin
Modified: 2020-09-20 13:16 PDT (History)
7 users (show)

See Also:


Attachments
Patch (937 bytes, patch)
2020-04-13 08:13 PDT, Sergio Villar Senin
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sergio Villar Senin 2020-04-13 08:11:17 PDT
Add ccls config file to the list of ignored files
Comment 1 Sergio Villar Senin 2020-04-13 08:13:53 PDT
Created attachment 396280 [details]
Patch
Comment 2 Sergio Villar Senin 2020-04-28 12:46:49 PDT
Ping reviewers.

ccls is a stand-alone server implementing the Language Server Protocol for C, C++, and Objective-C languages. It can be used with any editor which provides an LSP client implementation. It originates from cquery.

https://github.com/MaskRay/ccls/wiki

It's basically used to provide semantic highlight and code navigation to big source code bases as WebKit. Many editors support LSP servers.
Comment 3 EWS 2020-04-29 00:59:22 PDT
Committed r260885: <https://trac.webkit.org/changeset/260885>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 396280 [details].
Comment 4 Radar WebKit Bug Importer 2020-04-29 01:00:16 PDT
<rdar://problem/62581559>
Comment 5 Philippe Normand 2020-09-19 07:04:20 PDT
Comment on attachment 396280 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=396280&action=review

> ChangeLog:9
> +        * .gitignore: ccls can read configuration options from a .ccls file in
> +        the project root directory. Let's just ignore it.

I don't understand the reason for this change. I've been using a local .ccls file for months, ccls running from the SDK actually needs such file. So I would like to revert this change and commit my .ccls file because I think it would be useful for a wider audience :)
Unless your IDE was generating a .ccls file? That seems to be what this patch implies, please elaborate :)
Comment 6 Philippe Normand 2020-09-19 07:04:59 PDT
cat .ccls
%compile_commands.json
%h -x
%h c++-header
%h --include=config.h
%cpp --include=config.h
Comment 7 Sergio Villar Senin 2020-09-20 13:16:32 PDT
(In reply to Philippe Normand from comment #5)
> Comment on attachment 396280 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=396280&action=review
> 
> > ChangeLog:9
> > +        * .gitignore: ccls can read configuration options from a .ccls file in
> > +        the project root directory. Let's just ignore it.
> 
> I don't understand the reason for this change. I've been using a local .ccls
> file for months, ccls running from the SDK actually needs such file. So I
> would like to revert this change and commit my .ccls file because I think it
> would be useful for a wider audience :)
> Unless your IDE was generating a .ccls file? That seems to be what this
> patch implies, please elaborate :)

Having a .ccls file is optional for ccls to work. That's the reason why I decided to add it to the list of ignored files instead of committing it. But I don't have a strong opinion here, i.e. I'm fine with you adding a .ccls file.