HomePhabricator

Add the notion of deferred diagnostics.

Description

Add the notion of deferred diagnostics.

Summary:
This patch lets you create diagnostics that are emitted if and only if a
particular FunctionDecl is codegen'ed.

This is necessary for CUDA, where some constructs -- e.g. calls from
host+device functions to host functions when compiling for device -- are
allowed to appear in semantically-correct programs, but only if they're
never codegen'ed.

Reviewers: rnk

Subscribers: cfe-commits, tra

Differential Revision: https://reviews.llvm.org/D23241

Details

Committed
jlebarAug 15 2016, 1:38 PM
Differential Revision
D23241: Add the notion of deferred diagnostics.
Parents
rC278734: [CUDA] Include CUDA headers before anything else.
Branches
Unknown
Tags
Unknown