File tree Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -22,11 +22,10 @@ bool isCompleteAndHasNoZeroValue(const EnumDecl *D) {
2222 const EnumDecl *Definition = D->getDefinition ();
2323 return Definition && Definition->isComplete () &&
2424 !Definition->enumerators ().empty () &&
25- std::none_of (Definition->enumerator_begin (),
26- Definition->enumerator_end (),
27- [](const EnumConstantDecl *Value) {
28- return Value->getInitVal ().isZero ();
29- });
25+ llvm::none_of (Definition->enumerators (),
26+ [](const EnumConstantDecl *Value) {
27+ return Value->getInitVal ().isZero ();
28+ });
3029}
3130
3231AST_MATCHER (EnumDecl, isCompleteAndHasNoZeroValue) {
Original file line number Diff line number Diff line change @@ -22,11 +22,10 @@ namespace {
2222AST_MATCHER (EnumDecl, isCompleteAndHasNoZeroValue) {
2323 const EnumDecl *Definition = Node.getDefinition ();
2424 return Definition && Node.isComplete () &&
25- std::none_of (Definition->enumerator_begin (),
26- Definition->enumerator_end (),
27- [](const EnumConstantDecl *Value) {
28- return Value->getInitVal ().isZero ();
29- });
25+ llvm::none_of (Definition->enumerators (),
26+ [](const EnumConstantDecl *Value) {
27+ return Value->getInitVal ().isZero ();
28+ });
3029}
3130
3231} // namespace
You can’t perform that action at this time.
0 commit comments