Issue 172269
Summary [clang-tidy] readability-math-missing-parentheses with parentheses
Labels clang-tidy
Assignees
Reporter menzels
    i noticed that clang-tidy does not warn on expressions with missing parentheses when there are already parentheses present.

see following example, where it warns on line 2 but not on line 3, even though the _expression_ is the same, just wrapped in a pair of parentheses;

`int main() {
    int a = 2-4*3/2;
    return (2-4*3/2) / (3-1);
}`

https://clang-tidy.godbolt.org/z/z8M5sz8Y1
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to