#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,
char *new_file_path,
uptr new_file_path_size) { … }
static const char *FindFile(const char *file_path,
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) { … }
}