[all-commits] [llvm/llvm-project] d4f097: [clang] More informative mixed namespace diagnostics

Nathan Sidwell via All-commits all-commits at lists.llvm.org
Sun Jan 2 09:24:35 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d4f09786e079361eba1ade1e351be8771d016f29
      https://github.com/llvm/llvm-project/commit/d4f09786e079361eba1ade1e351be8771d016f29
  Author: Nathan Sidwell <nathan at acm.org>
  Date:   2022-01-02 (Sun, 02 Jan 2022)

  Changed paths:
    M clang/lib/Sema/SemaCoroutine.cpp
    M clang/test/SemaCXX/co_await-range-for-exp-namespace.cpp
    M clang/test/SemaCXX/coreturn-eh-exp-namespace.cpp
    M clang/test/SemaCXX/coreturn-exp-namespace.cpp
    M clang/test/SemaCXX/coroutine-final-suspend-noexcept-exp-namespace.cpp
    M clang/test/SemaCXX/coroutine-mixed-exp-namespace.cpp
    M clang/test/SemaCXX/coroutine-mixed2-exp-namespace.cpp
    M clang/test/SemaCXX/coroutine-rvo-exp-namespace.cpp
    M clang/test/SemaCXX/coroutine-seh-exp-namespace.cpp
    M clang/test/SemaCXX/coroutine-traits-undefined-template-exp-namespace.cpp
    M clang/test/SemaCXX/coroutine-unhandled_exception-warning-exp-namespace.cpp
    M clang/test/SemaCXX/coroutine_handle-address-return-type-exp-namespace.cpp
    M clang/test/SemaCXX/coroutines-exp-namespace.cpp

  Log Message:
  -----------
  [clang] More informative mixed namespace diagnostics

First, let's check we get a TemplateDecl, before complaining about
where it might have been found.

Second, if it came from an unexpected place, show where that location is.

Reviewed By: ChuanqiXu

Differential Revision: https://reviews.llvm.org/D116164




More information about the All-commits mailing list