]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/tools/lldb/include/lldb/Utility/NameMatches.h
MFV r337212:
[FreeBSD/FreeBSD.git] / contrib / llvm / tools / lldb / include / lldb / Utility / NameMatches.h
1 //===-- NameMatches.h -------------------------------------------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 #ifndef LLDB_UTILITY_NAMEMATCHES_H
10 #define LLDB_UTILITY_NAMEMATCHES_H
11
12 #include "llvm/ADT/StringRef.h"
13
14 namespace lldb_private {
15
16 enum class NameMatch {
17   Ignore,
18   Equals,
19   Contains,
20   StartsWith,
21   EndsWith,
22   RegularExpression
23 };
24
25 bool NameMatches(llvm::StringRef name, NameMatch match_type,
26                  llvm::StringRef match);
27 }
28
29 #endif