Fix a bug with setting breakpoints on C++11 inline initialization statements.
authorJim Ingham <jingham@apple.com>
Thu, 21 Jan 2021 01:58:34 +0000 (17:58 -0800)
committerJim Ingham <jingham@apple.com>
Thu, 21 Jan 2021 01:58:34 +0000 (17:58 -0800)
commitbff389120fa2368d123612449c938958cfd7f45e
tree9ba3f70f87cdf1877814519387cceed013a249bb
parent34e8fcf63f823ebc5a36166c12c01c3a49deea0b
Fix a bug with setting breakpoints on C++11 inline initialization statements.

If they occurred before the constructor that used them, we would refuse to
set the breakpoint because we thought they were crossing function boundaries.

Differential Revision: https://reviews.llvm.org/D94846
lldb/source/Breakpoint/BreakpointResolverFileLine.cpp
lldb/test/API/lang/cpp/break-on-initializers/Makefile [new file with mode: 0644]
lldb/test/API/lang/cpp/break-on-initializers/TestBreakOnCPP11Initializers.py [new file with mode: 0644]
lldb/test/API/lang/cpp/break-on-initializers/main.cpp [new file with mode: 0644]