[clang] Add error check for HeuristicResolver (PR #155561)
Nathan Ridge via cfe-commits
cfe-commits at lists.llvm.org
Sat Aug 30 16:10:15 PDT 2025
================
@@ -42,6 +62,11 @@ template <typename InputNode, typename ParamT, typename InputMatcher,
void expectResolution(llvm::StringRef Code, ResolveFnT<ParamT> ResolveFn,
const InputMatcher &IM, const OutputMatchers &...OMS) {
auto TU = tooling::buildASTFromCodeWithArgs(Code, {"-std=c++23"});
----------------
HighCommander4 wrote:
We need to be actually passing `CaptureDiagsKind::All` here
(A good way to validate that the mechanism we're adding is actually working is to change the `-std=c++23` to `-std=c++20` here. That should cause `MemberExpr_ExplicitObjectParameter` to fail, and it currently doesn't.)
https://github.com/llvm/llvm-project/pull/155561
More information about the cfe-commits
mailing list