[all-commits] [llvm/llvm-project] 8db38b: [analyzer] Extend EnumCastOutOfRange diagnostics (...

Endre Fülöp via All-commits all-commits at lists.llvm.org
Sat Oct 28 01:22:59 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8db38bd34421f87cbe7813aeeca81bcbd935025d
      https://github.com/llvm/llvm-project/commit/8db38bd34421f87cbe7813aeeca81bcbd935025d
  Author: Endre Fülöp <endre.fulop at sigmatechnology.se>
  Date:   2023-10-28 (Sat, 28 Oct 2023)

  Changed paths:
    M clang/lib/StaticAnalyzer/Checkers/EnumCastOutOfRangeChecker.cpp
    M clang/test/Analysis/enum-cast-out-of-range.c
    M clang/test/Analysis/enum-cast-out-of-range.cpp

  Log Message:
  -----------
  [analyzer] Extend EnumCastOutOfRange diagnostics (#68191)

EnumCastOutOfRange checker now reports the name of the enum in the
warning message. Additionally, a note-tag is placed to highlight the
location of the declaration.




More information about the All-commits mailing list