Please review attached patch.

-- 
Regards,
Konstantin
From acc6d349f8dc59dc9acfe8b2a203730101ff9276 Mon Sep 17 00:00:00 2001
From: Konstantin Tokarev <[email protected]>
Date: Sun, 22 Sep 2013 15:46:05 +0400
Subject: [PATCH] Added std:: qualifier to sort() invocation.

Iterator of std::vector may be implemented as a raw pointer. In
this case ADL does not search sort() function in std namespace.
For example, this is the case with STDCXX implementation of vector.
---
 lib/StaticAnalyzer/Checkers/DebugCheckers.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/StaticAnalyzer/Checkers/DebugCheckers.cpp b/lib/StaticAnalyzer/Checkers/DebugCheckers.cpp
index c374d0d..ac44321 100644
--- a/lib/StaticAnalyzer/Checkers/DebugCheckers.cpp
+++ b/lib/StaticAnalyzer/Checkers/DebugCheckers.cpp
@@ -165,7 +165,7 @@ public:
 
     std::vector<StringRef> Keys;
     for (; I != E ; ++I) { Keys.push_back(I->getKey()); }
-    sort(Keys.begin(), Keys.end());
+    std::sort(Keys.begin(), Keys.end());
     
     llvm::errs() << "[config]\n";
     for (unsigned i = 0, n = Keys.size(); i < n ; ++i) {
-- 
1.7.9.2

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to