================
@@ -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);
----------------
EugeneZelenko wrote:
```suggestion
return {Checks};
```
https://github.com/llvm/llvm-project/pull/197927
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits