[all-commits] [llvm/llvm-project] 2893aa: [libc][math] Fix -Wshadow warnings in cos.h (#196342)

Nico Weber via All-commits all-commits at lists.llvm.org
Sun May 10 11:39:14 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2893aa5d1f31d62a8f1c50e202d7924004792f2b
      https://github.com/llvm/llvm-project/commit/2893aa5d1f31d62a8f1c50e202d7924004792f2b
  Author: Nico Weber <thakis at chromium.org>
  Date:   2026-05-10 (Sun, 10 May 2026)

  Changed paths:
    M libc/src/__support/math/cos.h

  Log Message:
  -----------
  [libc][math] Fix -Wshadow warnings in cos.h (#196342)

cos() does `using namespace range_reduction_double_internal;` and
range_reduction_double_internal after 51e9430a0c767 contains

    using LIBC_NAMESPACE::fputil::DoubleDouble;
    using Float128 = LIBC_NAMESPACE::fputil::DyadicFloat<128>;

So the local using statements for DoubleDouble and Float128 shadowed
these. Just remove the local using statements.

No behavior change.



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