2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2019 The Qt Company Ltd.
|
2022-12-21 10:12:09 +01:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
2019-02-14 15:33:00 +01:00
|
|
|
|
2020-06-10 13:50:35 +02:00
|
|
|
#include "gtest-llvm-printing.h"
|
|
|
|
|
#include "gtest-std-printing.h"
|
|
|
|
|
|
2019-02-14 15:33:00 +01:00
|
|
|
#include <gtest/gtest-printers.h>
|
|
|
|
|
|
|
|
|
|
#include <utils/smallstringio.h>
|
|
|
|
|
|
|
|
|
|
#include <clang/Tooling/CompilationDatabase.h>
|
|
|
|
|
|
|
|
|
|
namespace clang {
|
|
|
|
|
namespace tooling {
|
|
|
|
|
struct CompileCommand;
|
|
|
|
|
|
|
|
|
|
std::ostream &operator<<(std::ostream &out, const CompileCommand &command)
|
|
|
|
|
{
|
|
|
|
|
return out << "(" << command.Directory << ", " << command.Filename << ", "
|
|
|
|
|
<< command.CommandLine << ", " << command.Output << ")";
|
|
|
|
|
}
|
|
|
|
|
} // namespace tooling
|
|
|
|
|
} // namespace clang
|