[PATCH] D106431: [clang-tidy] Fix cppcoreguidelines-init-variables with enum judgement

Whisperity via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 21 04:54:16 PDT 2021


whisperity added a comment.

Is this the right decision to make, conceptually? It will leave the variable uninitialised still, and reading such an uninit variable is still an issue, even if it is an enum. Could we consider the alternative of warning the user about the uninitialized variable, just not offering an automatic (and potentially bad / incorrect) fix?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D106431



More information about the cfe-commits mailing list