Steps for reproducing:
Execute rule RULE_3_3_A_start_function_name_with_lowercase_unix with then next
c example (also attached):
void C_Ha() {
}
void C_H() {
}
Expected output:
Failure for both functions
I see instead:
Failure of first function only.
Using version 0.2.2.13 on mac and Linux
I think the bug comming from the file nsiqcppstyle_checker.py.
The next lines (around line number 1095):
if Match(r"^[A-Z_][A-Z_0-9][A-Z_0-9]+$", fullName) :
continue
doesn't match the first function (longer than 3 char) but match the second
function name (C_H).
It results in that the first token type is changed to FUNCTION, will the other
type doesn't and stay ID.
Original issue reported on code.google.com by nadav...@gmail.com on 29 May 2013 at 6:05
Original issue reported on code.google.com by
nadav...@gmail.com
on 29 May 2013 at 6:05Attachments: