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

Optionally ignore C++ macros, etc. #2

Open
citizenmatt opened this issue Oct 5, 2015 · 1 comment
Open

Optionally ignore C++ macros, etc. #2

citizenmatt opened this issue Oct 5, 2015 · 1 comment

Comments

@citizenmatt
Copy link
Member

From RSPL-6620:

It would be nice to add ability to exclude macro during complexity evaluation.

My case: i have function and it has assert macro. Windows assert macro has non-trivial definition and i get 8 points of complexity more with it in some expressions.

It would be nice to tell the plugin that i don't want to include some macro (or event function/method) for complexity calculation.

Not sure how this would work - ignore certain node types on the control flow graph?

@timoxley
Copy link

+1, a lot of my unreal C++ functions are reporting that they're over-threshold purely due to the addition of logging macros (UE_LOG, UE_CLOG etc). Commenting the logs out makes the warning go away.

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