llvm/clang/lib/Basic/Sanitizers.cpp

//===- Sanitizers.cpp - C Language Family Language Options ----------------===//
//
// 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
//
//===----------------------------------------------------------------------===//
//
//  This file defines the classes from Sanitizers.h
//
//===----------------------------------------------------------------------===//

#include "clang/Basic/Sanitizers.h"
#include "llvm/ADT/Hashing.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringSwitch.h"
#include "llvm/Support/MathExtras.h"

usingnamespaceclang;

// Once LLVM switches to C++17, the constexpr variables can be inline and we
// won't need this.
#define SANITIZER
#define SANITIZER_GROUP
#include "clang/Basic/Sanitizers.def"

SanitizerMask clang::parseSanitizerValue(StringRef Value, bool AllowGroups) {}

void clang::serializeSanitizerSet(SanitizerSet Set,
                                  SmallVectorImpl<StringRef> &Values) {}

SanitizerMask clang::expandSanitizerGroups(SanitizerMask Kinds) {}

llvm::hash_code SanitizerMask::hash_value() const {}

namespace clang {
unsigned SanitizerMask::countPopulation() const {}

llvm::hash_code hash_value(const clang::SanitizerMask &Arg) {}

StringRef AsanDtorKindToString(llvm::AsanDtorKind kind) {}

llvm::AsanDtorKind AsanDtorKindFromString(StringRef kindStr) {}

StringRef AsanDetectStackUseAfterReturnModeToString(
    llvm::AsanDetectStackUseAfterReturnMode mode) {}

llvm::AsanDetectStackUseAfterReturnMode
AsanDetectStackUseAfterReturnModeFromString(StringRef modeStr) {}

} // namespace clang