[clang-tools-extra] [clang-tidy] Add modernize-make-direct check (PR #118120)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 29 10:21:48 PST 2024
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 056153f36eca184f81969f5cd5c8cd967c935f96 2bcf868d023b5be2f3c88f1d68dd2084b7db4604 --extensions h,cpp -- clang-tools-extra/clang-tidy/modernize/MakeFunctionToDirectCheck.cpp clang-tools-extra/clang-tidy/modernize/MakeFunctionToDirectCheck.h clang-tools-extra/test/clang-tidy/checkers/modernize/make-direct-check.cpp clang-tools-extra/clang-tidy/modernize/ModernizeTidyModule.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang-tools-extra/clang-tidy/modernize/ModernizeTidyModule.cpp b/clang-tools-extra/clang-tidy/modernize/ModernizeTidyModule.cpp
index 45754f0a0b..55a2deeba0 100644
--- a/clang-tools-extra/clang-tidy/modernize/ModernizeTidyModule.cpp
+++ b/clang-tools-extra/clang-tidy/modernize/ModernizeTidyModule.cpp
@@ -124,7 +124,7 @@ public:
"modernize-use-uncaught-exceptions");
CheckFactories.registerCheck<UseUsingCheck>("modernize-use-using");
CheckFactories.registerCheck<MakeFunctionToDirectCheck>(
- "modernize-make-direct");
+ "modernize-make-direct");
}
};
``````````
</details>
https://github.com/llvm/llvm-project/pull/118120
More information about the cfe-commits
mailing list