[clang] [Clang] Fix warning for non std functions with name `infinity` (PR #123417)

Amr Hesham via cfe-commits cfe-commits at lists.llvm.org
Sat Jan 18 09:27:08 PST 2025


================
@@ -8469,7 +8489,7 @@ void Sema::CheckInfNaNFunction(const CallExpr *Call,
     bool IsInfOrIsFinite =
----------------
AmrDeveloper wrote:

Yes, I agree, i am thinking to change the structure of the function `CheckInfNaNFunction ` too, because if `HasIdentifier` is false that's means `IsStdFunction`, `IsInfOrNanFunction` and `IsInfinityFunction` will return false, so maybe we can just eliminate some un needed function calls by early return.

I will try and update you with result :D

https://github.com/llvm/llvm-project/pull/123417


More information about the cfe-commits mailing list