We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82f24c9 commit 449df80Copy full SHA for 449df80
clang-tools-extra/docs/clang-tidy/checks/bugprone/return-const-ref-from-parameter.rst
@@ -46,5 +46,6 @@ annotated function. See `lifetimebound attribute<https://clang.llvm.org/docs/Att
46
for details.
47
48
.. code-block:: c++
49
+
50
const int &f(const int &a [[clang::lifetimebound]]) { return a; } // no warning
51
const int &v = f(1); // warning: temporary bound to local reference 'v' will be destroyed at the end of the full-expression [-Wdangling]
0 commit comments