This fixes build errors like these:
NativeRegisterContextWindows.h:22:33: error: extra qualification on member 'NativeRegisterContextWindows' NativeRegisterContextWindows::NativeRegisterContextWindows( ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
Differential D67856
[LLDB] Fix compilation for MinGW, remove redundant class name on inline member mstorsjo on Sep 20 2019, 1:09 PM. Authored by
Details
This fixes build errors like these: NativeRegisterContextWindows.h:22:33: error: extra qualification on member 'NativeRegisterContextWindows' NativeRegisterContextWindows::NativeRegisterContextWindows( ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
Diff Detail
Event TimelineComment Actions FWIW, it was with clang that I ran into it, haven't tested building lldb with gcc. But the issue can be tested with a snippet like this: class Foo { public: Foo::Foo() {} }; With MSVC, this passes fine without any warnings. With clang-cl (or plain clang with an msvc target), it builds but warns (-Wmicrosoft-extra-qualification), with gcc it's an error (that can be waived with -fpermissive), and with clang a non-msvc target, it's an unrecoverable error. Comment Actions Just keep an eye on the bots as they might start whining otherwise, just go ahead. |