llvm/third-party/benchmark/src/colorprint.cc

// Copyright 2015 Google Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#include "colorprint.h"

#include <cstdarg>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <memory>
#include <string>

#include "check.h"
#include "internal_macros.h"

#ifdef BENCHMARK_OS_WINDOWS
#include <io.h>
#include <windows.h>
#else
#include <unistd.h>
#endif  // BENCHMARK_OS_WINDOWS

namespace benchmark {
namespace {
#ifdef BENCHMARK_OS_WINDOWS
typedef WORD PlatformColorCode;
#else
PlatformColorCode;
#endif

PlatformColorCode GetPlatformColorCode(LogColor color) {}

}  // end namespace

std::string FormatString(const char* msg, va_list args) {}

std::string FormatString(const char* msg, ...) {}

void ColorPrintf(std::ostream& out, LogColor color, const char* fmt, ...) {}

void ColorPrintf(std::ostream& out, LogColor color, const char* fmt,
                 va_list args) {}

bool IsColorTerminal() {}

}  // end namespace benchmark