代码拉取完成,页面将自动刷新
/* Copyright 2016-present Facebook, Inc.
* Licensed under the Apache License, Version 2.0 */
#ifndef WATCHMAN_IGNORE_H
#define WATCHMAN_IGNORE_H
#include <unordered_set>
#include "thirdparty/libart/src/art.h"
#ifdef __cplusplus
extern "C" {
#endif
struct watchman_ignore {
/* if the map has an entry for a given dir, we're ignoring it */
std::unordered_set<w_string> ignore_vcs;
std::unordered_set<w_string> ignore_dirs;
/* radix tree containing the same information as the ignore
* entries above. This is used only on OS X and Windows because
* we cannot exclude these dirs using the kernel watching APIs */
art_tree<uint8_t, w_string> tree;
/* On OS X, we need to preserve the order of the ignore list so
* that we can exclude things deterministically and fit within
* system limits. */
std::vector<w_string> dirs_vec;
// Adds a string to the ignore list.
// The is_vcs_ignore parameter indicates whether it is a full ignore
// or a vcs-style grandchild ignore.
void add(const w_string& path, bool is_vcs_ignore);
// Tests whether path is ignored.
// Returns true if the path is ignored, false otherwise.
bool isIgnored(const char* path, uint32_t pathlen) const;
// Test whether path is listed in ignore vcs config
bool isIgnoreVCS(const w_string& path) const;
// Test whether path is listed in ignore dir config
bool isIgnoreDir(const w_string& path) const;
};
#ifdef __cplusplus
}
#endif
#endif
/* vim:ts=2:sw=2:et:
*/
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。