1 //===-- BreakpointResolverFileRegex.h ----------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef liblldb_BreakpointResolverFileRegex_h_
11 #define liblldb_BreakpointResolverFileRegex_h_
15 // Other libraries and framework includes
17 #include "lldb/Breakpoint/BreakpointResolver.h"
19 namespace lldb_private {
21 //----------------------------------------------------------------------
22 /// @class BreakpointResolverFileRegex BreakpointResolverFileRegex.h "lldb/Breakpoint/BreakpointResolverFileRegex.h"
23 /// @brief This class sets breakpoints by file and line. Optionally, it will look for inlined
24 /// instances of the file and line specification.
25 //----------------------------------------------------------------------
27 class BreakpointResolverFileRegex :
28 public BreakpointResolver
31 BreakpointResolverFileRegex (Breakpoint *bkpt,
32 RegularExpression ®ex);
35 ~BreakpointResolverFileRegex ();
37 virtual Searcher::CallbackReturn
38 SearchCallback (SearchFilter &filter,
39 SymbolContext &context,
43 virtual Searcher::Depth
47 GetDescription (Stream *s);
50 Dump (Stream *s) const;
52 /// Methods for support type inquiry through isa, cast, and dyn_cast:
53 static inline bool classof(const BreakpointResolverFileRegex *) { return true; }
54 static inline bool classof(const BreakpointResolver *V) {
55 return V->getResolverID() == BreakpointResolver::FileRegexResolver;
59 friend class Breakpoint;
60 RegularExpression m_regex; // This is the line expression that we are looking for.
63 DISALLOW_COPY_AND_ASSIGN(BreakpointResolverFileRegex);
66 } // namespace lldb_private
68 #endif // liblldb_BreakpointResolverFileRegex_h_