summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit929624f4616f59aed98cd9423252e7aadc08f0e1 (patch)
tree1b289c48a784068c9188316a61c1d8e4ab93018b /llvm/include/llvm/Support/CommandLine.h
parent83b095df361631d78db12017af732a6d279382d7 (diff)
downloadbcm5719-llvm-929624f4616f59aed98cd9423252e7aadc08f0e1.tar.gz
bcm5719-llvm-929624f4616f59aed98cd9423252e7aadc08f0e1.zip
Add explicit keywords.
llvm-svn: 37925
Diffstat (limited to 'llvm/include/llvm/Support/CommandLine.h')
-rw-r--r--llvm/include/llvm/Support/CommandLine.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/Support/CommandLine.h b/llvm/include/llvm/Support/CommandLine.h
index 08aca8160ac..23b7cf380e7 100644
--- a/llvm/include/llvm/Support/CommandLine.h
+++ b/llvm/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 &&
OpenPOWER on IntegriCloud