[clang-tools-extra] [clang-tidy] Add AllowFalseEvaluated flag to clang-tidy noexcept-move-constructor check (PR #126897)

Congcong Cai via cfe-commits cfe-commits at lists.llvm.org
Sun Feb 23 21:20:54 PST 2025


================
@@ -22,7 +22,8 @@ namespace clang::tidy::performance {
 class NoexceptFunctionBaseCheck : public ClangTidyCheck {
 public:
   NoexceptFunctionBaseCheck(StringRef Name, ClangTidyContext *Context)
-      : ClangTidyCheck(Name, Context) {}
+      : ClangTidyCheck(Name, Context)
+      , AllowFalseEvaluated(Options.getLocalOrGlobal("AllowFalseEvaluated", false)) {}
----------------
HerrCai0907 wrote:

Use getLocal.

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


More information about the cfe-commits mailing list