[all-commits] [llvm/llvm-project] fc3090: Extend support for std::move etc to also cover std...

Richard Smith via All-commits all-commits at lists.llvm.org
Fri Apr 15 16:32:06 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fc3090109643af8d2da9822d0f99c84742b9c877
      https://github.com/llvm/llvm-project/commit/fc3090109643af8d2da9822d0f99c84742b9c877
  Author: Richard Smith <richard at metafoo.co.uk>
  Date:   2022-04-15 (Fri, 15 Apr 2022)

  Changed paths:
    M clang/include/clang/Basic/Builtins.def
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/lib/AST/ExprConstant.cpp
    M clang/lib/Analysis/BodyFarm.cpp
    M clang/lib/CodeGen/CGBuiltin.cpp
    M clang/lib/Sema/SemaChecking.cpp
    M clang/lib/Sema/SemaDecl.cpp
    M clang/test/Analysis/inner-pointer.cpp
    M clang/test/CodeGenCXX/builtin-std-move.cpp
    M clang/test/CodeGenCXX/builtins.cpp
    M clang/test/SemaCXX/builtin-std-move.cpp
    M clang/unittests/Analysis/ExprMutationAnalyzerTest.cpp

  Log Message:
  -----------
  Extend support for std::move etc to also cover std::as_const and
std::addressof, plus the libstdc++-specific std::__addressof.

This brings us to parity with the corresponding GCC behavior.

Remove STDBUILTIN macro that ended up not being used.




More information about the All-commits mailing list