[clang] [libclang/python] Add a few things to the python api (PR #120590)

2024-12-19 Thread Mathias Stearn via cfe-commits
https://github.com/RedBeard0531 created https://github.com/llvm/llvm-project/pull/120590 I modified a local copy of cindex.py to add these when working on something and wanted to upstream the improvements. >From 1c68440616b555c376a3c227338f23ca80a2c777 Mon Sep 17 00:00:00 2001 From: Mathias St

[clang-tools-extra] [clang-tidy] ignore `[[clang::lifetimebound]]` param in return-const-ref-from-parameter (PR #118315)

2024-12-03 Thread Mathias Stearn via cfe-commits
@@ -38,3 +29,21 @@ Example const S& s = fn(S{1}); s.v; // use after free + + +This issue can be resolved by declaring an overload of the problematic function +where the ``const &`` parameter is instead declared as ``&&``. The developer has +to ensure that the implementati