folly/folly/debugging/symbolizer/SymbolizePrinter.cpp

/*
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * 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 <folly/debugging/symbolizer/SymbolizePrinter.h>

#include <folly/Demangle.h>
#include <folly/FileUtil.h>
#include <folly/ScopeGuard.h>
#include <folly/io/IOBuf.h>
#include <folly/lang/ToAscii.h>

#ifdef __GLIBCXX__
#include <ext/stdio_filebuf.h>
#include <ext/stdio_sync_filebuf.h>
#endif

namespace folly {
namespace symbolizer {

namespace {
constexpr char kHexChars[] =;
constexpr auto kAddressColor =;
constexpr auto kFunctionColor =;
constexpr auto kFileColor =;

#ifdef _WIN32
constexpr size_t kPathMax = 4096;
#else
constexpr size_t kPathMax =;
#endif
} // namespace

AddressFormatter::AddressFormatter() {}

folly::StringPiece AddressFormatter::format(uintptr_t address) {}

void SymbolizePrinter::print(const SymbolizedFrame& frame) {}

void SymbolizePrinter::color(SymbolizePrinter::Color color) {}

void SymbolizePrinter::println(const SymbolizedFrame& frame) {}

void SymbolizePrinter::printTerse(const SymbolizedFrame& frame) {}

void SymbolizePrinter::println(
    const SymbolizedFrame* frames, size_t frameCount) {}

namespace {

int getFD(const std::ios& stream) {}

bool isColorfulTty(int options, int fd) {}

} // namespace

OStreamSymbolizePrinter::OStreamSymbolizePrinter(std::ostream& out, int options)
    :{}

void OStreamSymbolizePrinter::doPrint(StringPiece sp) {}

FDSymbolizePrinter::FDSymbolizePrinter(int fd, int options, size_t bufferSize)
    :{}

FDSymbolizePrinter::~FDSymbolizePrinter() {}

void FDSymbolizePrinter::doPrint(StringPiece sp) {}

void FDSymbolizePrinter::flush() {}

FILESymbolizePrinter::FILESymbolizePrinter(FILE* file, int options)
    :{}

void FILESymbolizePrinter::doPrint(StringPiece sp) {}

void StringSymbolizePrinter::doPrint(StringPiece sp) {}

} // namespace symbolizer
} // namespace folly