projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
522712e
)
[Option] Remove the error-prone default argument true from 4-argument hasFlag
author
Fangrui Song
<i@maskray.me>
Sat, 26 Mar 2022 08:09:18 +0000
(
01:09
-0700)
committer
Fangrui Song
<i@maskray.me>
Sat, 26 Mar 2022 08:09:18 +0000
(
01:09
-0700)
llvm/include/llvm/Option/ArgList.h
patch
|
blob
|
history
diff --git
a/llvm/include/llvm/Option/ArgList.h
b/llvm/include/llvm/Option/ArgList.h
index e19ecec573226d83be3c076aa045df1b50142b0b..c9dd7da24e80e58f5bc55b7adb9d8f3ceb2b2082 100644
(file)
--- a/
llvm/include/llvm/Option/ArgList.h
+++ b/
llvm/include/llvm/Option/ArgList.h
@@
-305,7
+305,7
@@
public:
/// the negation is present, and \p Default if none of the options are
/// given. If multiple options are present, the last one wins.
bool hasFlag(OptSpecifier Pos, OptSpecifier PosAlias, OptSpecifier Neg,
- bool Default
= true
) const;
+ bool Default) const;
/// Render only the last argument match \p Id0, if present.
template<typename ...OptSpecifiers>