[clang-tools-extra] clang-tidy: Add bugprone-eval-order (PR #78028)

via cfe-commits cfe-commits at lists.llvm.org
Sat Jan 13 07:35:50 PST 2024


================
@@ -0,0 +1,40 @@
+.. title:: clang-tidy - bugprone-eval-order
+
+bugprone-eval-order
+===================
+
+Order of evaluation is unspecified for function and constructor parameters,
+unless the constructor uses C++11 list-initialization.
+
+This may lead to issues in code that is written with the assumption of a
+specified evaluation order.
+
+This tidy rule will print a warning when at least two parameters in a call are
----------------
EugeneZelenko wrote:

`This check`.

https://github.com/llvm/llvm-project/pull/78028


More information about the cfe-commits mailing list