[PATCH] D97963: [ASTMatchers][Dynamic] Provide Fallback and suggestions for typos.

Nathan James via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 4 08:59:48 PST 2021


njames93 created this revision.
njames93 added reviewers: aaron.ballman, klimek, steveire.
Herald added a subscriber: mgorny.
njames93 requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

If there is a typo in parsing and we can see a close match, offer a suggestion hint and in the case of matchers carry on parsing to see if more diags are generated.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D97963

Files:
  clang/include/clang/ASTMatchers/Dynamic/Diagnostics.h
  clang/include/clang/ASTMatchers/Dynamic/Parser.h
  clang/include/clang/ASTMatchers/Dynamic/Registry.h
  clang/lib/ASTMatchers/Dynamic/CMakeLists.txt
  clang/lib/ASTMatchers/Dynamic/Diagnostics.cpp
  clang/lib/ASTMatchers/Dynamic/Parser.cpp
  clang/lib/ASTMatchers/Dynamic/Registry.cpp
  clang/lib/ASTMatchers/Dynamic/TypoSuggester.cpp
  clang/lib/ASTMatchers/Dynamic/TypoSuggester.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D97963.328196.patch
Type: text/x-patch
Size: 14634 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210304/a1b023db/attachment-0001.bin>


More information about the cfe-commits mailing list