[PATCH] Last-chance diagnostics for incomplete types
zarko at google.com
Fri Jul 26 09:18:16 PDT 2013
zarko added you to the CC list for the revision "Last-chance diagnostics for incomplete types".
This patch adds a method to ExternalSemaSource to allow it to produce diagnostics when an incomplete type was detected where a complete type was required. For example, one could define an ExternalSemaSource that scans a repository for headers providing a missing definition.
The purpose of the MaybeDiagnoseMissingCompleteType method differs from that of the existing ExternalASTSource::CompleteType method. The former is invoked to diagnose a single SourceLocation-ed missing-complete-type site where there is no chance for recovery. The latter may be called in the course of compiling a valid source file with some of its definitions available in external but otherwise available locations.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 8456 bytes
Desc: not available
More information about the cfe-commits