Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude some files in the build #133

Open
jvela018 opened this issue Jan 23, 2024 · 1 comment
Open

Exclude some files in the build #133

jvela018 opened this issue Jan 23, 2024 · 1 comment

Comments

@jvela018
Copy link

Hi,

I'm using this tool to create a JSON Compilation Database. My static analysis tool doesn't recognize assembly code in .s nor .S extensions. I'm currently removing these manually as they're not many.

Is there a way to exclude certain compilation units using compiledb? If not, this could be an interesting feature to have.

BR,

/Jon

@UmbraMalison
Copy link

Came for this. I have an assembly file (.s) in the root of my repo, which clang-tidy will error on (diagnostic).

Thus I have not had any luck using .clang-tidy to disable checks in root, as this unfortunately causes an early exit even though I have checks enabled in a nested clang-tidy file.

Interestingly, I use the Microsoft makefile extension in vscode as a config providor to code analysis component of the Microsoft cpp extension and that generates the compile_commands DB, and by default it does not include assembly files.

This then lead me to this question, can compiledb filter out assembly compile commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants