aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp
diff options
context:
space:
mode:
authorMichelleCDjunaidi <michellechrisalyn@gmail.com>2025-01-12 18:04:40 +0800
committerGitHub <noreply@github.com>2025-01-12 11:04:40 +0100
commit8ebc35f8d041f097a2b973b455dc3533420af6bf (patch)
tree05bbc66b6a856b45df8d2b74578acc68a0094e1d /llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp
parentfdfe7e7fabc85ed7293ca6f5f234d41812644584 (diff)
downloadllvm-8ebc35f8d041f097a2b973b455dc3533420af6bf.zip
llvm-8ebc35f8d041f097a2b973b455dc3533420af6bf.tar.gz
llvm-8ebc35f8d041f097a2b973b455dc3533420af6bf.tar.bz2
[clang-tidy] Create bugprone-incorrect-enable-shared-from-this check (#102299)
This checks that classes/structs inheriting from ``std::enable_shared_from_this`` does so with public inheritance, so it prevents crashes due to ``std::make_shared`` and ``shared_from_this()`` getting called when the internal weak pointer was not initialized (e.g. due to private inheritance).
Diffstat (limited to 'llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions