================ @@ -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 {} ---------------- JDevlieghere wrote:
Should this take a `SymbolContextList` instead? https://github.com/llvm/llvm-project/pull/129937 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits