statement_id.cc 467 B

1234567891011121314151617
  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. #include <cstring>
  5. #include "sql/statement_id.h"
  6. namespace sql {
  7. bool StatementID::operator<(const StatementID& rhs) const noexcept {
  8. if (rhs.source_line_ != source_line_)
  9. return source_line_ < rhs.source_line_;
  10. return std::strcmp(source_file_, rhs.source_file_) < 0;
  11. }
  12. } // namespace sql