[cfe-commits] r90378 - in /cfe/trunk: lib/Lex/PPMacroExpansion.cpp test/Lexer/has_feature_exceptions.cpp

Ted Kremenek kremenek at apple.com
Wed Dec 2 18:14:44 PST 2009


Indeed.  For those we can have separate has_feature entries.

On Dec 2, 2009, at 6:06 PM, Mike Stump wrote:

> On Dec 2, 2009, at 5:34 PM, Ted Kremenek wrote:
>> Author: kremenek
>> Date: Wed Dec  2 19:34:15 2009
>> New Revision: 90378
>> 
>> URL: http://llvm.org/viewvc/llvm-project?rev=90378&view=rev
>> Log:
>> Add 'has_feature(cxx_exceptions)' to allow code to determine via preprocessor logic if C++ exceptions are enabled.
> 
> But C and Objective C have exceptions as well!
> 
>> +    if (II->isStr("cxx_exceptions")) return LangOpts.Exceptions;





More information about the cfe-commits mailing list