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

via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 24 03:20:26 PST 2025


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff e7ad07ffb846a9812d9567b8d4b680045dce5b28 c0eecd16a733d6d157b2011ae0706bf88d3edd2a --extensions cpp,h -- clang-tools-extra/test/clang-tidy/checkers/performance/noexcept-move-constructor-allow-false-evaluated.cpp clang-tools-extra/clang-tidy/performance/NoexceptFunctionBaseCheck.cpp clang-tools-extra/clang-tidy/performance/NoexceptFunctionBaseCheck.h
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/clang-tools-extra/clang-tidy/performance/NoexceptFunctionBaseCheck.h b/clang-tools-extra/clang-tidy/performance/NoexceptFunctionBaseCheck.h
index 2852dce110..39aef400b0 100644
--- a/clang-tools-extra/clang-tidy/performance/NoexceptFunctionBaseCheck.h
+++ b/clang-tools-extra/clang-tidy/performance/NoexceptFunctionBaseCheck.h
@@ -22,8 +22,8 @@ namespace clang::tidy::performance {
 class NoexceptFunctionBaseCheck : public ClangTidyCheck {
 public:
   NoexceptFunctionBaseCheck(StringRef Name, ClangTidyContext *Context)
-      : ClangTidyCheck(Name, Context)
-      , AllowFalseEvaluated(Options.get("AllowFalseEvaluated", false)) {}
+      : ClangTidyCheck(Name, Context),
+        AllowFalseEvaluated(Options.get("AllowFalseEvaluated", false)) {}
 
   bool isLanguageVersionSupported(const LangOptions &LangOpts) const override {
     return LangOpts.CPlusPlus11 && LangOpts.CXXExceptions;

``````````

</details>


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


More information about the cfe-commits mailing list