llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
28.24k stars 11.66k forks source link

clang-query should print a list of applicable matchers when parsing a match fails #22878

Open LegalizeAdulthood opened 9 years ago

LegalizeAdulthood commented 9 years ago
Bugzilla Link 22504
Version unspecified
OS Linux

Extended Description

When I type an invalid match expression, clang-tidy tells me the type of matcher that it expects to find, but it doesn't print the match expressions that would supply appropriate values as it does with command-completion with line edit enabled.

Therefore, if you run without line edit, you're missing out on a bunch of functionality (no way to see what's appropriate for where you are in an expression)

llvmbot commented 2 years ago

@llvm/issue-subscribers-clang-query