forked from qt-creator/qt-creator
6 lines
187 B
C++
6 lines
187 B
C++
![]() |
// clang-tidy -export-fixes=clang-analyzer.dividezero.yaml "-checks=-*,clang-analyzer-core.DivideZero" clang-analyzer.dividezero.cpp
|
||
|
void test(int z) {
|
||
|
if (z == 0)
|
||
|
int x = 1 / z;
|
||
|
}
|