summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm/Support/CommandLine.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2007-10-08 15:08:41 +0000
committerDan Gohman <gohman@apple.com>2007-10-08 15:08:41 +0000
commit13ab93efde5a66221762adaba836149783de94ff (patch)
treec1d15640eb90bbea2482d8a1112150c0fab028fc /llvm/include/llvm/Support/CommandLine.h
parent49c6aab7b87c9a0502589059d5ff03790efdfb12 (diff)
downloadbcm5719-llvm-13ab93efde5a66221762adaba836149783de94ff.tar.gz
bcm5719-llvm-13ab93efde5a66221762adaba836149783de94ff.zip
Add explicit keywords.
llvm-svn: 42747
Diffstat (limited to 'llvm/include/llvm/Support/CommandLine.h')
-rw-r--r--llvm/include/llvm/Support/CommandLine.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/include/llvm/Support/CommandLine.h b/llvm/include/llvm/Support/CommandLine.h
index 23b7cf380e7..562ba04aa50 100644
--- a/llvm/include/llvm/Support/CommandLine.h
+++ b/llvm/include/llvm/Support/CommandLine.h
@@ -838,7 +838,7 @@ public:
// One option...
template<class M0t>
- opt(const M0t &M0) : Option(Optional | NotHidden) {
+ explicit opt(const M0t &M0) : Option(Optional | NotHidden) {
apply(M0, this);
done();
}
@@ -998,7 +998,7 @@ public:
// One option...
template<class M0t>
- list(const M0t &M0) : Option(ZeroOrMore | NotHidden) {
+ explicit list(const M0t &M0) : Option(ZeroOrMore | NotHidden) {
apply(M0, this);
done();
}
@@ -1184,7 +1184,7 @@ public:
// One option...
template<class M0t>
- bits(const M0t &M0) : Option(ZeroOrMore | NotHidden) {
+ explicit bits(const M0t &M0) : Option(ZeroOrMore | NotHidden) {
apply(M0, this);
done();
}
@@ -1277,7 +1277,7 @@ public:
// One option...
template<class M0t>
- alias(const M0t &M0) : Option(Optional | Hidden), AliasFor(0) {
+ explicit alias(const M0t &M0) : Option(Optional | Hidden), AliasFor(0) {
apply(M0, this);
done();
}
@@ -1306,7 +1306,7 @@ public:
// aliasfor - Modifier to set the option an alias aliases.
struct aliasopt {
Option &Opt;
- aliasopt(Option &O) : Opt(O) {}
+ explicit aliasopt(Option &O) : Opt(O) {}
void apply(alias &A) const { A.setAliasFor(Opt); }
};
OpenPOWER on IntegriCloud