Victor Costan | 12daa3ac9 | 2018-07-19 01:05:58 | [diff] [blame] | 1 | // Copyright 2018 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #include <cstring> |
| 6 | |
| 7 | #include "sql/statement_id.h" |
| 8 | |
| 9 | namespace sql { |
| 10 | |
| 11 | bool StatementID::operator<(const StatementID& rhs) const noexcept { |
| 12 | if (rhs.source_line_ != source_line_) |
| 13 | return source_line_ < rhs.source_line_; |
| 14 | return std::strcmp(source_file_, rhs.source_file_) < 0; |
| 15 | } |
| 16 | |
| 17 | } // namespace sql |