summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm/Support/CommandLine.h
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2016-08-11 21:15:00 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2016-08-11 21:15:00 +0000
commit0a16c228463ca58c7828b5fd9bdd10b3ba612bbf (patch)
tree761d8030441a22b5acb0f154ff4586eb6679833f /llvm/include/llvm/Support/CommandLine.h
parent1b689da04e3f8f2c83b1365853a8af39a27b30ea (diff)
downloadbcm5719-llvm-0a16c228463ca58c7828b5fd9bdd10b3ba612bbf.tar.gz
bcm5719-llvm-0a16c228463ca58c7828b5fd9bdd10b3ba612bbf.zip
Use range algorithms instead of unpacking begin/end
No functionality change is intended. llvm-svn: 278417
Diffstat (limited to 'llvm/include/llvm/Support/CommandLine.h')
-rw-r--r--llvm/include/llvm/Support/CommandLine.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/include/llvm/Support/CommandLine.h b/llvm/include/llvm/Support/CommandLine.h
index 70465a0e3fd..a0ec2622b03 100644
--- a/llvm/include/llvm/Support/CommandLine.h
+++ b/llvm/include/llvm/Support/CommandLine.h
@@ -21,6 +21,7 @@
#define LLVM_SUPPORT_COMMANDLINE_H
#include "llvm/ADT/ArrayRef.h"
+#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringMap.h"
@@ -278,7 +279,7 @@ public:
return getNumOccurrencesFlag() == cl::ConsumeAfter;
}
bool isInAllSubCommands() const {
- return std::any_of(Subs.begin(), Subs.end(), [](const SubCommand *SC) {
+ return any_of(Subs, [](const SubCommand *SC) {
return SC == &*AllSubCommands;
});
}
OpenPOWER on IntegriCloud