aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectProcess.cpp
diff options
context:
space:
mode:
authorDavid Spickett <david.spickett@linaro.org>2024-01-26 14:35:18 +0000
committerGitHub <noreply@github.com>2024-01-26 14:35:18 +0000
commit7b7d2dd7e3e42c941338edcd5dbc2ff0e5426c28 (patch)
tree459274e25d5e69d122a067eb60cc6f6fd6a62d5a /lldb/source/Commands/CommandObjectProcess.cpp
parente0e216099505bc5051ba53b2fdb8202cdde5f47e (diff)
downloadllvm-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