[clang-tools-extra] Fix bugs in misc-coroutine-hostile-raii check (PR #167947)

via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 18 09:26:21 PST 2025


================
@@ -113,9 +117,9 @@ void CoroutineHostileRAIICheck::storeOptions(
     ClangTidyOptions::OptionMap &Opts) {
   Options.store(Opts, "RAIITypesList",
                 utils::options::serializeStringList(RAIITypesList));
-  Options.store(Opts, "SafeAwaitableList",
+  Options.store(Opts, "AllowedAwaitablesList",
                 utils::options::serializeStringList(AllowedAwaitablesList));
-  Options.store(Opts, "SafeCallees",
+  Options.store(Opts, "AllowedCallees",
----------------
higher-performance wrote:

These names are already correct in the documentation -- they were just misnamed in this function, so that's why I fixed them:

https://github.com/search?q=repo%3Allvm%2Fllvm-project%20SafeAwaitableList&type=code

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


More information about the cfe-commits mailing list