From: Ted Kremenek Date: Tue, 13 Nov 2007 18:40:33 +0000 (+0000) Subject: Updated diagnostic for -Wfloat-equal to underline the offending expressions. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0da493e705a93f490dc43738f3d41db5830faadb;p=clang Updated diagnostic for -Wfloat-equal to underline the offending expressions. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44054 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/Sema/SemaExpr.cpp b/Sema/SemaExpr.cpp index 2981d4a054..a533da6306 100644 --- a/Sema/SemaExpr.cpp +++ b/Sema/SemaExpr.cpp @@ -1260,7 +1260,8 @@ inline QualType Sema::CheckCompareOperands( // C99 6.5.8 EmitWarning = false; if (EmitWarning) - Diag(loc, diag::warn_floatingpoint_eq); + Diag(loc, diag::warn_floatingpoint_eq, + lex->getSourceRange(),rex->getSourceRange()); } if (lType->isArithmeticType() && rType->isArithmeticType())