[PATCH] D49285: [clang-tidy] readability-inconsistent-declaration-parameter-name: accept approximate name matches.
Haojian Wu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 13 03:24:23 PDT 2018
hokein added inline comments.
================
Comment at: clang-tidy/readability/InconsistentDeclarationParameterNameCheck.cpp:96
+bool nameMatch(StringRef L, StringRef R) {
+ return L.contains_lower(R) || R.contains_lower(L);
+}
----------------
I have a concern that this is too general -- it will cover the middle case like `inBFix` in you test, which seems not happen often in the real world.
Two important cases are prefix and suffix, maybe just restrict to these two cases?
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D49285
More information about the cfe-commits
mailing list