mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Basics: add a stub for centralized configurations for block list
This commit is contained in:
41
lib/Basic/BlockList.cpp
Normal file
41
lib/Basic/BlockList.cpp
Normal file
@@ -0,0 +1,41 @@
|
||||
//===--- BlockList.cpp - BlockList utilities ------------------------------===//
|
||||
//
|
||||
// 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
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "swift/Basic/BlockList.h"
|
||||
|
||||
struct swift::BlockListStore::Implementation {
|
||||
void addConfigureFilePath(StringRef path);
|
||||
bool hasBlockListAction(StringRef key, BlockListKeyKind keyKind,
|
||||
BlockListAction action);
|
||||
};
|
||||
|
||||
swift::BlockListStore::BlockListStore(): Impl(*new Implementation()) {}
|
||||
|
||||
swift::BlockListStore::~BlockListStore() { delete &Impl; }
|
||||
|
||||
bool swift::BlockListStore::hasBlockListAction(StringRef key,
|
||||
BlockListKeyKind keyKind, BlockListAction action) {
|
||||
return Impl.hasBlockListAction(key, keyKind, action);
|
||||
}
|
||||
|
||||
void swift::BlockListStore::addConfigureFilePath(StringRef path) {
|
||||
Impl.addConfigureFilePath(path);
|
||||
}
|
||||
|
||||
bool swift::BlockListStore::Implementation::hasBlockListAction(StringRef key,
|
||||
BlockListKeyKind keyKind, BlockListAction action) {
|
||||
return false;
|
||||
}
|
||||
|
||||
void swift::BlockListStore::Implementation::addConfigureFilePath(StringRef path) {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user