[PATCH] D52261: [Sema] Generate completion fix-its for C code as well

Ilya Biryukov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 19 12:28:13 PDT 2018


ilya-biryukov added a comment.

It's the responsibility of the caller to provide a corrected expression, this keeps the completion function simpler. I suggest we stick to this contract.
We do something in `getLangOpts().CPlusPlus` case to create a corrected expression, let's just implement a similar fallback for C at the single callsite that we have (`ParsePostfixExpressionSuffix`).


https://reviews.llvm.org/D52261





More information about the cfe-commits mailing list