[all-commits] [llvm/llvm-project] 8282c5: [Clang] Emit a diagnostic note at the class declar...

c8ef via All-commits all-commits at lists.llvm.org
Wed Oct 2 07:40:28 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8282c58d9b1cd5b6df89ee3f68438fe0ee672f7f
      https://github.com/llvm/llvm-project/commit/8282c58d9b1cd5b6df89ee3f68438fe0ee672f7f
  Author: c8ef <c8ef at outlook.com>
  Date:   2024-10-02 (Wed, 02 Oct 2024)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Sema/SemaDecl.cpp
    M clang/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/p1.cpp
    M clang/test/CXX/dcl.decl/dcl.meaning/dcl.fct/p8.cpp
    M clang/test/CXX/dcl/dcl.fct/p17.cpp
    M clang/test/CXX/drs/cwg22xx.cpp
    M clang/test/CXX/drs/cwg3xx.cpp
    M clang/test/CXX/special/class.inhctor/p8.cpp
    M clang/test/CXX/temp/temp.constr/temp.constr.decl/func-template-decl.cpp
    M clang/test/CXX/temp/temp.res/temp.local/p8.cpp
    M clang/test/CXX/temp/temp.spec/temp.expl.spec/p12.cpp
    M clang/test/CXX/temp/temp.spec/temp.expl.spec/p14-23.cpp
    M clang/test/CXX/temp/temp.spec/temp.expl.spec/p18.cpp
    M clang/test/FixIt/member-mismatch.cpp
    M clang/test/Parser/cxx-class.cpp
    M clang/test/SemaCXX/attr-target-mv.cpp
    M clang/test/SemaCXX/attr-target-version.cpp
    M clang/test/SemaCXX/enable_if.cpp
    M clang/test/SemaCXX/function-redecl.cpp
    M clang/test/SemaCXX/lambda-unevaluated.cpp
    M clang/test/SemaCXX/nested-name-spec.cpp
    M clang/test/SemaCXX/out-of-line-def-mismatch.cpp
    M clang/test/SemaCXX/typo-correction.cpp
    M clang/test/SemaTemplate/concepts-out-of-line-def.cpp
    M clang/test/SemaTemplate/recovery-crash.cpp

  Log Message:
  -----------
  [Clang] Emit a diagnostic note at the class declaration when the method definition does not match any declaration. (#110638)

Fixes #110558.

In this patch, we will emit a diagnostic note pointing to the class
declaration when a method definition does not match any declaration.
This approach, similar to what GCC does, makes the diagnostic more
user-friendly.

---------

Co-authored-by: Vlad Serebrennikov <serebrennikov.vladislav at gmail.com>



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