[clang-tools-extra] Allow specifying pipe syntax for use-ranges checks (PR #98696)
Piotr Zegar via cfe-commits
cfe-commits at lists.llvm.org
Sat Jul 13 02:37:18 PDT 2024
================
@@ -166,6 +166,15 @@ utils::UseRangesCheck::ReplacerMap UseRangesCheck::getReplacerMap() const {
return Result;
}
+UseRangesCheck::UseRangesCheck(StringRef Name, ClangTidyContext *Context)
+ : utils::UseRangesCheck(Name, Context),
+ UseReversePipe(Options.get("UseReversePipe", false)) {}
----------------
PiotrZSL wrote:
this option could be moved to utils::UseRangesCheck to avoid duplications
https://github.com/llvm/llvm-project/pull/98696
More information about the cfe-commits
mailing list