diff options
author | David Spickett <david.spickett@linaro.org> | 2024-01-26 14:35:18 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-26 14:35:18 +0000 |
commit | 7b7d2dd7e3e42c941338edcd5dbc2ff0e5426c28 (patch) | |
tree | 459274e25d5e69d122a067eb60cc6f6fd6a62d5a /lldb/source/Commands/CommandObjectProcess.cpp | |
parent | e0e216099505bc5051ba53b2fdb8202cdde5f47e (diff) | |
download | llvm-7b7d2dd7e3e42c941338edcd5dbc2ff0e5426c28.zip llvm-7b7d2dd7e3e42c941338edcd5dbc2ff0e5426c28.tar.gz llvm-7b7d2dd7e3e42c941338edcd5dbc2ff0e5426c28.tar.bz2 |
[llvm][DebugInfo] Fix c++20 warnings in LVOptions.h (#79585)
Compiling with -DCMAKE_CXX_STANDARD=20 produces 228 warnings from this
file due to:
```
LVOptions.h:515:16: warning: implicit capture of 'this' with a capture default of '=' is deprecated [-Wdeprecated-this-capture]
```
So I've changed these to explicitly list the captures, including `this`.
As llvm requires at least c++17, I think we could use `[=, *this]`
instead. However when I did so I got a lot of errors about const. So on
balance, explicitly listing the captures seems better than adding some
kind of const cast to each one.
These and other warnings can be seen on the c++20 buildbot
https://lab.llvm.org/buildbot/#/builders/249.
Diffstat (limited to 'lldb/source/Commands/CommandObjectProcess.cpp')
0 files changed, 0 insertions, 0 deletions