[analyzer] scan-build: when matching flags, make sure the - is the first letter.

PR19191