-
Notifications
You must be signed in to change notification settings - Fork 24
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
False positives in functions that returns a struct #8
Comments
This is because this code isn't built for C language. If you want to use it for C, use the typedef strict in order to prevent the lexer from thinking it is a struct instead of a function. |
The README (and the original description on Google Code) claims that both C and C++ are supported, so it would be nice if the documentation explained what limitations exist for C code. |
I have no control over Google Code since I am not the original author, but am maintaining the code for personal use. |
Thanks! I'll keep you updated in case I find time to do something about it. Closing the bug since it's now a documented feature. 😉 |
I experience many false positives in all functions that return a struct or a pointer to struct. Here is a very simple example.
filefilter.txt:
nsiq_test.c:
This gives the following false positive:
If I change the return type of
func2
toint
instead ofstruct test_struct
the error goes away. I suspect thatfunc2
is treated as a struct instead of a function. If I dumpcontextStack
during each iteration in nsiqcppstyle_checker.py, I get this whenfunc2
returns an int:And this when
func2
returns a struct:The text was updated successfully, but these errors were encountered: