================
@@ -236,11 +256,86 @@ static bool 
parseFileExtensions(llvm::ArrayRef<std::string> AllFileExtensions,
   return true;
 }
 
+/// Expand check alias patterns in the checks string.
+/// For each glob pattern, if it matches an alias name, also add the canonical
+/// name (and vice versa) with the same +/- prefix. This ensures that disabling
+/// either name disables both.
+static std::string expandCheckAliases(StringRef Checks) {
+  if (Checks.empty())
+    return std::string(Checks);
----------------
earnol wrote:

We want to return an empty string here. It's a guard to handle a border case 
when user request no checks at all :)
I'll change to ``return {}`` if you do not mind.

https://github.com/llvm/llvm-project/pull/197927
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to