aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Support/CommandLine.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2007-07-05 20:40:15 +0000
committerDan Gohman <gohman@apple.com>2007-07-05 20:40:15 +0000
commit27e9d457d4047cf0051e17d9ca39740875d11440 (patch)
tree4746ec25cb603dcd7d9a1b660613a27c705c52d2 /include/llvm/Support/CommandLine.h
parentd27df628cc6fa29605fa221a2f0b03b4592caf03 (diff)
Add explicit keywords.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37925 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/CommandLine.h')
-rw-r--r--include/llvm/Support/CommandLine.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Support/CommandLine.h b/include/llvm/Support/CommandLine.h
index 08aca8160a..23b7cf380e 100644
--- a/include/llvm/Support/CommandLine.h
+++ b/include/llvm/Support/CommandLine.h
@@ -202,7 +202,7 @@ public:
void setMiscFlag(enum MiscFlags M) { setFlag(M, M); }
void setPosition(unsigned pos) { Position = pos; }
protected:
- Option(unsigned DefaultFlags)
+ explicit Option(unsigned DefaultFlags)
: NumOccurrences(0), Flags(DefaultFlags | NormalFormatting), Position(0),
NextRegistered(0), ArgStr(""), HelpStr(""), ValueStr("") {
assert(getNumOccurrencesFlag() != 0 &&