The check_clang_tidy.py script would allow mixing of CHECK-NOTES and CHECK-MESSAGES but running FileCheck for that would implicitly fail, because CHECK-NOTES bails out if there is a warning.
That means a clang-tidy test can not mix these constructs to check warnings with CHECK-MESSAGES and notes with CHECK-NOTES. The script gives now a clear error if that happens.