llvm-project/clang/lib/Format/MatchFilePath.h
Owen Pan 8f9803b5ab
[clang-format] Add an fnmatch-like function for .clang-format-ignore (#76021)
This is needed because Windows doesn't have anything equivalent to the
POSIX fnmatch() function.
2023-12-24 01:05:10 -08:00

23 lines
665 B
C++

//===--- MatchFilePath.h ----------------------------------------*- C++ -*-===//
//
// 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
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_CLANG_LIB_FORMAT_MATCHFILEPATH_H
#define LLVM_CLANG_LIB_FORMAT_MATCHFILEPATH_H
#include "llvm/ADT/StringRef.h"
namespace clang {
namespace format {
bool matchFilePath(llvm::StringRef Pattern, llvm::StringRef FilePath);
} // end namespace format
} // end namespace clang
#endif