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

Closing Curly braces ("}") following return statements not ignored #129

Closed
bcaddy opened this issue Aug 17, 2021 · 6 comments
Closed

Closing Curly braces ("}") following return statements not ignored #129

bcaddy opened this issue Aug 17, 2021 · 6 comments

Comments

@bcaddy
Copy link

bcaddy commented Aug 17, 2021

I found that lcov is reporting lines with just a } that follow a return statement when they should just be excluded. I don't see this issue in other peoples coverage reports and lcov does appear to be excluding the opening { properly. What am I doing wrong?

last line issue

@henry2cox
Copy link
Collaborator

henry2cox commented Aug 17, 2021 via email

@bcaddy
Copy link
Author

bcaddy commented Aug 17, 2021

Thanks, is --filter merged into LCOV yet? It's not showing up as an option in my lcov install (v1.15) and I'm limited to officially released version on the systems I run on

@henry2cox
Copy link
Collaborator

henry2cox commented Aug 17, 2021 via email

@bcaddy
Copy link
Author

bcaddy commented Aug 17, 2021

Bummer, thanks for your help!

@FreddyFunk
Copy link

FreddyFunk commented Jan 7, 2023

@bcaddy In case you still got this issue, try adding the compile options -fno-elide-constructors and -fno-default-inline in addition to -fprofile-arcs and -ftest-coverage as it may also help with coverage of "missing" constructors and inline functions. This fixed a similar issue for me when I was using GNU/GCC 11.3.

@bcaddy
Copy link
Author

bcaddy commented Jan 9, 2023

Thank you, I'll try it out.

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

3 participants