forked from mirrors/qmk_userspace
Format code according to conventions (#16322)
This commit is contained in:
parent
afcdd7079c
commit
63646e8906
345 changed files with 4916 additions and 3229 deletions
|
@ -36,7 +36,7 @@ std::vector<uint8_t> get_keys(const report_keyboard_t& report) {
|
|||
std::sort(result.begin(), result.end());
|
||||
return result;
|
||||
}
|
||||
} // namespace
|
||||
} // namespace
|
||||
|
||||
bool operator==(const report_keyboard_t& lhs, const report_keyboard_t& rhs) {
|
||||
auto lhskeys = get_keys(lhs);
|
||||
|
@ -72,8 +72,14 @@ KeyboardReportMatcher::KeyboardReportMatcher(const std::vector<uint8_t>& keys) {
|
|||
}
|
||||
}
|
||||
|
||||
bool KeyboardReportMatcher::MatchAndExplain(report_keyboard_t& report, MatchResultListener* listener) const { return m_report == report; }
|
||||
bool KeyboardReportMatcher::MatchAndExplain(report_keyboard_t& report, MatchResultListener* listener) const {
|
||||
return m_report == report;
|
||||
}
|
||||
|
||||
void KeyboardReportMatcher::DescribeTo(::std::ostream* os) const { *os << "is equal to " << m_report; }
|
||||
void KeyboardReportMatcher::DescribeTo(::std::ostream* os) const {
|
||||
*os << "is equal to " << m_report;
|
||||
}
|
||||
|
||||
void KeyboardReportMatcher::DescribeNegationTo(::std::ostream* os) const { *os << "is not equal to " << m_report; }
|
||||
void KeyboardReportMatcher::DescribeNegationTo(::std::ostream* os) const {
|
||||
*os << "is not equal to " << m_report;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue