Issue |
79686
|
Summary |
clang/lib/Sema/SemaChecking.cpp: 4 * Redundant conditions ?
|
Labels |
clang
|
Assignees |
|
Reporter |
dcb314
|
Static analyser cppcheck says:
trunk/clang/lib/Sema/SemaChecking.cpp:17188:35: style: Redundant condition: EvalOK. '!EvalOK || (EvalOK && !EvalResult)' is equivalent to '!EvalOK || !EvalResult' [redundantCondition]
trunk/clang/lib/Sema/SemaChecking.cpp:17272:41: style: Redundant condition: EvalOK. '!EvalOK || (EvalOK && !EvalResult)' is equivalent to '!EvalOK || !EvalResult' [redundantCondition]
trunk/clang/lib/Sema/SemaChecking.cpp:17220:35: style: Redundant condition: EvalOK. '!EvalOK || (EvalOK && EvalResult)' is equivalent to '!EvalOK || EvalResult' [redundantCondition]
trunk/clang/lib/Sema/SemaChecking.cpp:17271:40: style: Redundant condition: EvalOK. '!EvalOK || (EvalOK && EvalResult)' is equivalent to '!EvalOK || EvalResult' [redundantCondition]
Source code for the first one is:
bool ShouldVisitRHS = !EvalOK || (EvalOK && !EvalResult);
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs