[PATCH] Last-chance diagnostics for incomplete types
Luke Zarko
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".
Hi jdennett,
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.
http://llvm-reviews.chandlerc.com/D1213
Files:
include/clang/Sema/ExternalSemaSource.h
include/clang/Sema/MultiplexExternalSemaSource.h
lib/Sema/MultiplexExternalSemaSource.cpp
lib/Sema/SemaType.cpp
unittests/CMakeLists.txt
unittests/Makefile
unittests/Sema/CMakeLists.txt
unittests/Sema/ExternalSemaSourceTest.cpp
unittests/Sema/Makefile
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D1213.1.patch
Type: text/x-patch
Size: 8456 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130726/5e1dbcaf/attachment.bin>
More information about the cfe-commits
mailing list