jacobdufault / cquery

C/C++ language server supporting multi-million line code base, powered by libclang. Emacs, Vim, VSCode, and others with language server protocol support. Cross references, completion, diagnostics, semantic highlighting and more
MIT License
2.35k stars 162 forks source link

Ignore specific folder when use .cquery #845

Open meritozh opened 6 years ago

meritozh commented 6 years ago

When I coding, using .cquery instead of _compilecommands.json is more convenient because I will create or rename files later. But cquery will teat the folder exist .cquery file as root folder, recursively parsing all C family files. Here is my project layout:

.
├── include
│   └── xxx
├── lib
│   ├── common
│   ├── core
│   └── handler
├── src
│   └── main.c
└── test
    └── xxx-test-server <= write in Node.js, with some .cc files in its _node_modules_
    └── unit-test

I want ignore whole test/xxx-test-server folder. How to tell cquery to ignore specific folder when use .cquery file?

ilkekarsli commented 5 years ago

When I coding, using .cquery instead of _compilecommands.json is more convenient because I will create or rename files later. But cquery will teat the folder exist .cquery file as root folder, recursively parsing all C family files. Here is my project layout:

.
├── include
│   └── xxx
├── lib
│   ├── common
│   ├── core
│   └── handler
├── src
│   └── main.c
└── test
    └── xxx-test-server <= write in Node.js, with some .cc files in its _node_modules_
    └── unit-test

I want ignore whole test/xxx-test-server folder. How to tell cquery to ignore specific folder when use .cquery file?

I also need a similar feature, is there anyone looking into it?