[cfe-dev] dyn_cast and DiagnosticClient

Vassil Vassilev vasil.georgiev.vasilev at cern.ch
Wed Jul 27 10:22:55 PDT 2011

   Sorry for the delayed answer I didn't follow the tread quite a while. 
Actually for cling prompt we needed to ignore certain error that doesn't 
make sense (of course within the prompt) like unused expression and etc. 
I had implemented a custom DiagnosticClient that ignored those warnings. 
However for the testsuite we needed the VerifyDiagnosticsClient and I 
wanted to check which is the currently attached diagnostic client. Soon 
I found out that clang has very nice interface for doing that. I could 
simply map the warning to ignored...
   Sorry for the noise.

On 06/24/2011 06:50 PM, Eli Friedman wrote:
> On Wed, Jun 22, 2011 at 6:41 AM, Vassil Vassilev
> <vasil.georgiev.vasilev at cern.ch>  wrote:
>> Hi,
>>    I was wondering is there any chance of having dyn_cast for clang's
>> diagnostic clients?
> We haven't had any use for that construct so far... why would it be useful?
> -Eli

More information about the cfe-dev mailing list