llvm/compiler-rt/lib/sanitizer_common/sanitizer_suppressions.cpp

//===-- sanitizer_suppressions.cpp ----------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
//
// Suppression parsing/matching code.
//
//===----------------------------------------------------------------------===//

#include "sanitizer_suppressions.h"

#include "sanitizer_allocator_internal.h"
#include "sanitizer_common.h"
#include "sanitizer_flags.h"
#include "sanitizer_file.h"
#include "sanitizer_libc.h"
#include "sanitizer_placement_new.h"

namespace __sanitizer {

SuppressionContext::SuppressionContext(const char *suppression_types[],
                                       int suppression_types_num)
    :{}

#if !SANITIZER_FUCHSIA
static bool GetPathAssumingFileIsRelativeToExec(const char *file_path,
                                                /*out*/char *new_file_path,
                                                uptr new_file_path_size) {}

static const char *FindFile(const char *file_path,
                            /*out*/char *new_file_path,
                            uptr new_file_path_size) {}
#else
static const char *FindFile(const char *file_path, char *, uptr) {
  return file_path;
}
#endif

void SuppressionContext::ParseFromFile(const char *filename) {}

bool SuppressionContext::Match(const char *str, const char *type,
                               Suppression **s) {}

static const char *StripPrefix(const char *str, const char *prefix) {}

void SuppressionContext::Parse(const char *str) {}

uptr SuppressionContext::SuppressionCount() const {}

bool SuppressionContext::HasSuppressionType(const char *type) const {}

const Suppression *SuppressionContext::SuppressionAt(uptr i) const {}

void SuppressionContext::GetMatched(
    InternalMmapVector<Suppression *> *matched) {}

}  // namespace __sanitizer