[all-commits] [llvm/llvm-project] 6f7268: [Clang] Improve infrastructure for libstdc++ worka...

cor3ntin via All-commits all-commits at lists.llvm.org
Sat May 31 03:27:10 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6f7268e204ed0a2c014324828e0582d90e8fcd04
      https://github.com/llvm/llvm-project/commit/6f7268e204ed0a2c014324828e0582d90e8fcd04
  Author: cor3ntin <corentinjabot at gmail.com>
  Date:   2025-05-31 (Sat, 31 May 2025)

  Changed paths:
    M clang/include/clang/Lex/Preprocessor.h
    M clang/lib/Lex/PPExpressions.cpp
    M clang/lib/Sema/SemaDeclCXX.cpp
    M clang/lib/Sema/SemaExceptionSpec.cpp
    M clang/lib/Sema/SemaInit.cpp
    M clang/lib/Sema/SemaTemplate.cpp
    M clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
    M clang/test/SemaCXX/libstdcxx_common_type_hack.cpp
    M clang/test/SemaCXX/libstdcxx_explicit_init_list_hack.cpp
    M clang/test/SemaCXX/libstdcxx_pair_swap_hack.cpp

  Log Message:
  -----------
  [Clang] Improve infrastructure for libstdc++ workarounds (#141977)

This introduces a way detect the libstdc++ version, use that to enable
workarounds.
The version is cached.

This should make it easier in the future to find and remove these hacks.

I did not find the need for enabling a hack between or after specific
versions, so it's left as a future exercise.

We can extend this fature to other libraries as the need arise.



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