This function returns a list of completions for a given expression and
completion position.
Details
Details
- Reviewers
klimek sbenza - Commits
- rL200497: Introduce Parser::completeExpression.
Diff Detail
Diff Detail
Event Timeline
lib/ASTMatchers/Dynamic/Parser.cpp | ||
---|---|---|
294 ↗ | (On Diff #5752) | Can you add a scoped object that will pop_back automatically? |
388 ↗ | (On Diff #5752) | Is there a good use case for not aborting the parse if lookupMatcherCtor() returns null? |
Comment Actions
- Use a scoped object to manage the context stack
lib/ASTMatchers/Dynamic/Parser.cpp | ||
---|---|---|
294 ↗ | (On Diff #5752) | Done. |
388 ↗ | (On Diff #5752) | Not aborting gives us better (i.e. more) diagnostics. If we abort early, no diagnostics appear for anything after the invalid matcher name. (This also causes some unit tests under ParserTest.Errors to fail.) |