[PATCH] Last-chance diagnostics for incomplete types

Luke Zarko zarko at google.com
Tue Jul 9 15:45:15 PDT 2013


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...
Name: maybe-diagnose.patch
Type: application/octet-stream
Size: 3023 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130709/9f9be7ab/attachment.obj>


More information about the cfe-commits mailing list