Skip to content

Commit 5cc3ca0

Browse files
committed
return proper error code (currently returning 0 even if found errors)
1 parent 0e0ff06 commit 5cc3ca0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tool/ClangTidyMain.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,8 @@ static int clangTidyMain(int argc, const char **argv) {
416416
return WErrorCount;
417417
}
418418

419-
return 0;
419+
// return error code when errors found
420+
return Errors.size();
420421
}
421422

422423
// This anchor is used to force the linker to link the CERTModule.

0 commit comments

Comments
 (0)