[cfe-commits] r90662 - /cfe/trunk/lib/Sema/SemaCodeComplete.cpp
Chris Lattner
clattner at apple.com
Sat Dec 5 10:46:10 PST 2009
On Dec 5, 2009, at 2:07 AM, Benjamin Kramer wrote:
> Author: d0k
> Date: Sat Dec 5 04:07:04 2009
> New Revision: 90662
>
> URL: http://llvm.org/viewvc/llvm-project?rev=90662&view=rev
> Log:
> strcasecmp is unportable.
Oh. ignore previous email, thanks Benjamin :)
-Chris
>
> Modified:
> cfe/trunk/lib/Sema/SemaCodeComplete.cpp
>
> Modified: cfe/trunk/lib/Sema/SemaCodeComplete.cpp
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaCodeComplete.cpp?rev=90662&r1=90661&r2=90662&view=diff
>
> ==============================================================================
> --- cfe/trunk/lib/Sema/SemaCodeComplete.cpp (original)
> +++ cfe/trunk/lib/Sema/SemaCodeComplete.cpp Sat Dec 5 04:07:04 2009
> @@ -1129,7 +1129,7 @@
> : X.Pattern->getTypedText();
> const char *YStr = (Y.Kind == Result::RK_Keyword)? Y.Keyword
> : Y.Pattern->getTypedText();
> - return strcasecmp(XStr, YStr) < 0;
> + return llvm::StringRef(XStr).compare_lower(YStr) < 0;
> }
>
> // Result kinds are ordered by decreasing importance.
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
More information about the cfe-commits
mailing list