clang-power-tools icon indicating copy to clipboard operation
clang-power-tools copied to clipboard

Support .clang-format-ignore

Open NN--- opened this issue 6 years ago • 2 comments

For instance: https://github.com/mozilla/gecko-dev/blob/cae8e5b60b588dfdb0c1f9c313c741fb79bdf25f/.clang-format-ignore

NN--- avatar Jun 12 '19 13:06 NN---

?

cpp-red-lion avatar Jun 12 '19 13:06 cpp-red-lion

Instead of writing list of file in the VS settings, define it as patterns in file which can be added to VCS.

NN--- avatar Jun 12 '19 13:06 NN---

I will close this issue as we need more information

mariru27 avatar Jul 10 '23 11:07 mariru27

What additional information is needed?

NN--- avatar Jul 10 '23 11:07 NN---

Hi @NN---,

We need to understand the functionality, help us with a detailed example

Kind regards, Marina

mariru27 avatar Jul 10 '23 11:07 mariru27

I would like to ignore several files for clang format based on rules.

NN--- avatar Jul 10 '23 11:07 NN---

Did you try Files to Ignore?

image

mariru27 avatar Jul 10 '23 11:07 mariru27

I would like to put it as part of repository. Is it possible ?

NN--- avatar Jul 10 '23 11:07 NN---

We currently do not have this option But if you have multiple files, you can add directly in %appdata%\ClangPowerTools\settings.json

image

Kind regards, Marina

mariru27 avatar Jul 10 '23 12:07 mariru27