[all-commits] [llvm/llvm-project] 7ebcb7: PR50641: Properly handle AttributedStmts when chec...

Richard Smith via All-commits all-commits at lists.llvm.org
Wed Oct 6 15:13:52 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7ebcb7ce78f6abb73c5a29e7c8b9dd360acb65bc
      https://github.com/llvm/llvm-project/commit/7ebcb7ce78f6abb73c5a29e7c8b9dd360acb65bc
  Author: Richard Smith <richard at metafoo.co.uk>
  Date:   2021-10-06 (Wed, 06 Oct 2021)

  Changed paths:
    M clang/lib/Sema/SemaDeclCXX.cpp
    M clang/test/SemaCXX/attr-likelihood.cpp

  Log Message:
  -----------
  PR50641: Properly handle AttributedStmts when checking for a valid
constexpr function body.


  Commit: 7063b76b02484f93104f1c79496ad216b9bf5b87
      https://github.com/llvm/llvm-project/commit/7063b76b02484f93104f1c79496ad216b9bf5b87
  Author: Richard Smith <richard at metafoo.co.uk>
  Date:   2021-10-06 (Wed, 06 Oct 2021)

  Changed paths:
    M clang/include/clang/Basic/IdentifierTable.h
    M clang/lib/AST/Decl.cpp
    M clang/lib/Lex/PPDirectives.cpp
    M clang/lib/Sema/SemaCodeComplete.cpp
    M clang/lib/Sema/SemaExprCXX.cpp
    M clang/lib/Sema/SemaStmt.cpp
    M clang/test/Sema/reserved-identifier.c
    R clang/test/Sema/reserved-identifier.cpp
    A clang/test/SemaCXX/reserved-identifier.cpp

  Log Message:
  -----------
  PR50644: Do not warn on a declaration of `operator"" _foo`.

Also do not warn on `#define _foo` or `#undef _foo`.

Only global scope names starting with _[a-z] are reserved, not the use
of such an identifier in any other context.


  Commit: 141df744564822b8d8250fe1bcec15cdbd5f213e
      https://github.com/llvm/llvm-project/commit/141df744564822b8d8250fe1bcec15cdbd5f213e
  Author: Richard Smith <richard at metafoo.co.uk>
  Date:   2021-10-06 (Wed, 06 Oct 2021)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/include/clang/Basic/IdentifierTable.h
    M clang/lib/AST/Decl.cpp
    M clang/test/SemaCXX/reserved-identifier.cpp

  Log Message:
  -----------
  Add missing diagnostic for use of _reserved name in extern "C"
declaration.

Names starting with an underscore are reserved at the global scope, so
cannot be used as the name of an extern "C" symbol in any scope because
such usages conflict with a name at global scope.


Compare: https://github.com/llvm/llvm-project/compare/1183d65b4d85...141df7445648


More information about the All-commits mailing list