chromium/third_party/fuzztest/src/fuzztest/internal/type_support.cc

// Copyright 2022 Google LLC
//
// 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 "./fuzztest/internal/type_support.h"

#include <cassert>
#include <cctype>
#include <cmath>
#include <cstdint>
#include <limits>
#include <string>

#include "absl/numeric/int128.h"
#include "absl/strings/match.h"
#include "absl/strings/str_format.h"
#include "absl/strings/string_view.h"
#include "./fuzztest/internal/printer.h"

namespace fuzztest::internal {
namespace {

PrintMode;
RawSink;

template <typename T>
void PrintFloatingPointLiteral(T v, RawSink out, absl::string_view suffix) {}

}  // namespace

void IntegralPrinter::PrintUserValue(bool v, RawSink out, PrintMode) const {}

void IntegralPrinter::PrintUserValue(absl::uint128 v, RawSink out,
                                     PrintMode) const {}

void IntegralPrinter::PrintUserValue(absl::int128 v, RawSink out,
                                     PrintMode) const {}

void IntegralPrinter::PrintUserValue(char v, RawSink out,
                                     PrintMode mode) const {}

static void PrintNonFinite(double v, absl::string_view nan,
                           absl::string_view type, RawSink out) {}

void FloatingPrinter::PrintUserValue(float v, RawSink out,
                                     PrintMode mode) const {}

void FloatingPrinter::PrintUserValue(double v, RawSink out,
                                     PrintMode mode) const {}

void FloatingPrinter::PrintUserValue(long double v, RawSink out,
                                     PrintMode mode) const {}

}  // namespace fuzztest::internal