[all-commits] [llvm/llvm-project] 8c2ae4: [Clang][Sema] Fix missing warning when comparing m...

Kupa-Martin via All-commits all-commits at lists.llvm.org
Tue Feb 27 06:59:11 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8c2ae42b3e1c6aa7c18f873edcebff7c0b45a37e
      https://github.com/llvm/llvm-project/commit/8c2ae42b3e1c6aa7c18f873edcebff7c0b45a37e
  Author: Kupa-Martin <84517188+Kupa-Martin at users.noreply.github.com>
  Date:   2024-02-27 (Tue, 27 Feb 2024)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/AST/Expr.h
    M clang/lib/AST/Expr.cpp
    M clang/lib/Sema/SemaChecking.cpp
    M clang/lib/Sema/SemaExpr.cpp
    M clang/test/Sema/builtins-elementwise-math.c
    A clang/test/Sema/warn-compare-enum-types-mismatch.c
    R clang/test/Sema/warn-conditional-emum-types-mismatch.c
    A clang/test/Sema/warn-conditional-enum-types-mismatch.c
    M clang/test/Sema/warn-overlap.c

  Log Message:
  -----------
  [Clang][Sema] Fix missing warning when comparing mismatched enums in … (#81418)

…C mode

Factored logic from `CheckImplicitConversion` into new methods
`Expr::getEnumConstantDecl` and `Expr::getEnumCoercedType` for use in
`checkEnumArithmeticConversions`.

Fix #29217



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list