blob: 91851dfa34e557d39c85e1a2d44409234cb919e7 [file] [log] [blame]
Victor Costan12daa3ac92018-07-19 01:05:581// 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
9namespace sql {
10
11bool 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