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

Mike Stump mrs at apple.com
Wed Dec 2 18:06:45 PST 2009


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