NameMatches.h revision 341825
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 14namespace lldb_private { 15 16enum class NameMatch { 17 Ignore, 18 Equals, 19 Contains, 20 StartsWith, 21 EndsWith, 22 RegularExpression 23}; 24 25bool NameMatches(llvm::StringRef name, NameMatch match_type, 26 llvm::StringRef match); 27} 28 29#endif 30