Applied clang-tidy modernize-use-override over LLDB and added it to the LLDB .clang-tidy config.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM modulo the redundant comment
lldb/unittests/Target/RemoteAwarePlatformTest.cpp | ||
---|---|---|
40–41 |
Comment Actions
The reason for the funny /*override*/ thingy in the mock classes is that it is impossible (in the gmock version that we use) to add the override keyword to the methods overridden by the MOCK macros. Then, having override keywords on hand-written methods triggered -Winconsistent-missing-override.
Or at least it used to -- have you checked that these changes don't introduce any new compiler warnings?
Comment Actions
Yeah, I suppose we can do that. If this turns out to be more widespread, then I'd rather disable the tidy check (or perhaps the clang warning) for the unittest files instead.