[clang-tidy] Replace redundant checks with an assert().
authorArtem Belevich <tra@google.com>
Tue, 18 Sep 2018 21:51:02 +0000 (21:51 +0000)
committerArtem Belevich <tra@google.com>
Tue, 18 Sep 2018 21:51:02 +0000 (21:51 +0000)
commitfcfcd508e433625c8b3b884d2e98c8c709667dbe
tree4ba0f38d6fee5794684ebd63ebb42083210967d5
parentaaf4e2cbbabfe8f97925665b49d885aa0e5b703a
[clang-tidy] Replace redundant checks with an assert().

findStyleKind is only called if D is an explicit identifier with a name,
so the checks for operators will never return true. The explicit assert()
enforces this invariant.

Differential Revision: https://reviews.llvm.org/D52179

llvm-svn: 342514
clang-tools-extra/clang-tidy/readability/IdentifierNamingCheck.cpp