[PATCH] D129570: [clang-tidy] Add new clang-tidy check to find implicit conversions from enum to integer.

Nathan James via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 11 15:18:31 PDT 2022


njames93 added inline comments.


================
Comment at: clang-tools-extra/clang-tidy/bugprone/EnumToIntCheck.cpp:31
+  diag(MatchedExpr->getBeginLoc(),
+       "Enum is implictly converted to an integral.")
+      << MatchedExpr->getSourceRange();
----------------
diagnostics in clang aren't formatted as full sentences.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D129570/new/

https://reviews.llvm.org/D129570



More information about the cfe-commits mailing list