summaryrefslogtreecommitdiff
path: root/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
commitcdf2b3b2f88d6f961b664e3f67a8ee37b46b0d27 (patch)
tree4734759131091672970dd5592c47d2f64ad585d4 /include/llvm/Support/CommandLine.h
parent5477f8593db785bbe84a4fe923b1e5645ff15f6a (diff)
downloadllvm-cdf2b3b2f88d6f961b664e3f67a8ee37b46b0d27.tar.gz
llvm-cdf2b3b2f88d6f961b664e3f67a8ee37b46b0d27.tar.bz2
llvm-cdf2b3b2f88d6f961b664e3f67a8ee37b46b0d27.tar.xz
Add explicit keywords.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42747 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/CommandLine.h')
-rw-r--r--include/llvm/Support/CommandLine.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/llvm/Support/CommandLine.h b/include/llvm/Support/CommandLine.h
index 23b7cf380e..562ba04aa5 100644
--- a/include/llvm/Support/CommandLine.h
+++ b/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); }
};