Files
swift-mirror/include/swift/Basic/BlockList.h

53 lines
1.4 KiB
C++

//===--- BlockList.h ---------------------------------------------*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2023 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
//
//===----------------------------------------------------------------------===//
//
// This file defines some miscellaneous overloads of hash_value() and
// simple_display().
//
//===----------------------------------------------------------------------===//
#ifndef SWIFT_BASIC_BLOCKLIST_H
#define SWIFT_BASIC_BLOCKLIST_H
#include "swift/Basic/LLVM.h"
#include "llvm/ADT/StringRef.h"
namespace swift {
enum class BlockListAction: uint8_t {
Undefined = 0,
#define BLOCKLIST_ACTION(NAME) NAME,
#include "BlockListAction.def"
};
enum class BlockListKeyKind: uint8_t {
Undefined = 0,
ModuleName,
ProjectName
};
class BlockListStore {
public:
struct Implementation;
void addConfigureFilePath(StringRef path);
bool hasBlockListAction(StringRef key, BlockListKeyKind keyKind,
BlockListAction action);
BlockListStore();
~BlockListStore();
private:
Implementation &Impl;
};
} // namespace swift
#endif // SWIFT_BASIC_BLOCKLIST_H