1 //===-- NameMatches.h -------------------------------------------*- C++ -*-===// 2 // 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4 // See https://llvm.org/LICENSE.txt for license information. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 // 7 //===----------------------------------------------------------------------===// 8 #ifndef LLDB_UTILITY_NAMEMATCHES_H 9 #define LLDB_UTILITY_NAMEMATCHES_H 10 11 #include "llvm/ADT/StringRef.h" 12 13 namespace lldb_private { 14 15 enum class NameMatch { 16 Ignore, 17 Equals, 18 Contains, 19 StartsWith, 20 EndsWith, 21 RegularExpression 22 }; 23 24 bool NameMatches(llvm::StringRef name, NameMatch match_type, 25 llvm::StringRef match); 26 } 27 28 #endif 29