[all-commits] [llvm/llvm-project] 5dbccc: Better source location for -Wignored-qualifiers on...

Aaron Puchert via All-commits all-commits at lists.llvm.org
Wed Oct 28 15:33:39 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 5dbccc6c89c0f6c6dc6277cc304057f6d50b298d
      https://github.com/llvm/llvm-project/commit/5dbccc6c89c0f6c6dc6277cc304057f6d50b298d
  Author: Aaron Puchert <aaronpuchert at alice-dsl.net>
  Date:   2020-10-28 (Wed, 28 Oct 2020)

  Changed paths:
    M clang/include/clang/Sema/DeclSpec.h
    M clang/lib/Parse/ParseDecl.cpp
    M clang/lib/Parse/ParseDeclCXX.cpp
    M clang/lib/Parse/ParseExprCXX.cpp
    M clang/lib/Sema/DeclSpec.cpp
    M clang/lib/Sema/SemaType.cpp
    M clang/test/SemaCXX/return.cpp

  Log Message:
  -----------
  Better source location for -Wignored-qualifiers on trailing return types

We collect the source location of a trailing return type in the parser,
improving the location for regular functions and providing a location
for lambdas, where previously there was none.

Fixes PR47732.

Reviewed By: aaron.ballman

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


  Commit: ebfc427bbe08f0c36af9721d5a4e6d3ffe2e4bf5
      https://github.com/llvm/llvm-project/commit/ebfc427bbe08f0c36af9721d5a4e6d3ffe2e4bf5
  Author: Aaron Puchert <aaronpuchert at alice-dsl.net>
  Date:   2020-10-28 (Wed, 28 Oct 2020)

  Changed paths:
    M clang/include/clang/Sema/DeclSpec.h

  Log Message:
  -----------
  [Sema] Let getters assert that trailing return type exists, NFCI

This was requested in the review of D90129.


Compare: https://github.com/llvm/llvm-project/compare/51f8d46491c7...ebfc427bbe08


More information about the All-commits mailing list