================
@@ -354,14 +354,13 @@ class Language : public PluginInterface {
virtual llvm::StringRef GetInstanceVariableName() { return {}; }
- /// Returns true if this SymbolContext should be ignored when setting
- /// breakpoints by line (number or regex). Helpful for languages that create
- /// artificial functions without meaningful user code associated with them
- /// (e.g. code that gets expanded in late compilation stages, like by
- /// CoroSplitter).
- virtual bool IgnoreForLineBreakpoints(const SymbolContext &) const {
- return false;
- }
+ /// Given a symbol context list of matches which supposedly represent the
+ /// same file and line number in a CU, erases those that should be ignored
+ /// when setting breakpoints by line (number or regex). Helpful for languages
+ /// that create split a single source-line into many functions (e.g. call
+ /// sites transformed by CoroSplitter).
+ virtual void
+ FilterForLineBreakpoints(llvm::SmallVectorImpl<SymbolContext> &) const {}
----------------
felipepiovezan wrote:
I suspect because it intends to manipulate the contents of the list heavily
(like this method will)
https://github.com/llvm/llvm-project/pull/129937
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits