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

Filter out the clang-tidy #pragma once in main file warnings #10539

Closed
sean-mcmanus opened this issue Feb 16, 2023 · 1 comment
Closed

Filter out the clang-tidy #pragma once in main file warnings #10539

sean-mcmanus opened this issue Feb 16, 2023 · 1 comment
Assignees
Labels
enhancement Improvement to an existing feature Feature: Code Analysis Related to integration with clang-tidy, cppcheck, cl.exe /analyze, etc. fixed Check the Milestone for the release in which the fix is or will be available. Language Service quick fix
Milestone

Comments

@sean-mcmanus
Copy link
Collaborator

          > @H-G-Hristov The `#pragma once in main file` occurs if clang-tidy is run on the header and we're not able to select a source file to associate with it to run on instead. You can get rid of it via adding using setting `"C_Cpp.codeAnalysis.clangTidy.args": ["--extra-arg=-Wno-pragma-once-outside-header"]`, assuming you don't want to fix the source file association. **_Maybe we could filter those warnings out ourselves._**

I'd appreciate that.

Originally posted by @H-G-Hristov in #10463 (comment)

@sean-mcmanus sean-mcmanus added Language Service quick fix enhancement Improvement to an existing feature Feature: Code Analysis Related to integration with clang-tidy, cppcheck, cl.exe /analyze, etc. labels Feb 16, 2023
@sean-mcmanus sean-mcmanus added this to the 1.15.0 milestone Feb 16, 2023
@sean-mcmanus sean-mcmanus self-assigned this Feb 16, 2023
@sean-mcmanus sean-mcmanus added the fixed Check the Milestone for the release in which the fix is or will be available. label Feb 18, 2023
@sean-mcmanus
Copy link
Collaborator Author

@sean-mcmanus sean-mcmanus modified the milestones: 1.15.0, 1.14.4 Mar 8, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Apr 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Improvement to an existing feature Feature: Code Analysis Related to integration with clang-tidy, cppcheck, cl.exe /analyze, etc. fixed Check the Milestone for the release in which the fix is or will be available. Language Service quick fix
Projects
None yet
Development

No branches or pull requests

1 participant