[PATCH] D49736: [Basic] Emit warning flag suggestion only in case there's existing flag *similar* to the unknown one
Volodymyr Sapsai via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 16 13:30:10 PST 2018
vsapsai added a comment.
Have you considered the same approach as typo correction? I.e. for the max allowed edit distance use percentage of the input size. For example, something similar to `TypoCorrectionConsumer::addName` <https://github.com/apple/swift-clang/blob/4d16b315bc18647ca6715b7b4ea95a26a68fb5ed/lib/Sema/SemaLookup.cpp#L3992-L4008>.
Repository:
rC Clang
https://reviews.llvm.org/D49736
More information about the cfe-commits
mailing list