//===--- MatchFilePath.cpp - Match file path with pattern -------*- 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 // //===----------------------------------------------------------------------===// /// /// \file /// This file implements the functionality of matching a file path name to /// a pattern, similar to the POSIX fnmatch() function. /// //===----------------------------------------------------------------------===// #include "MatchFilePath.h" usingnamespacellvm; namespace clang { namespace format { // Check whether `FilePath` matches `Pattern` based on POSIX 2.13.1, 2.13.2, and // Rule 1 of 2.13.3. bool matchFilePath(StringRef Pattern, StringRef FilePath) { … } } // namespace format } // namespace clang