Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Consolidate and improve the handling of built-in feature-like macros | Andy Gibbs | 2016-04-05 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | Summary: The parsing logic has been separated out from the macro implementation logic, leading to a number of improvements: * Gracefully handle unexpected/invalid tokens, too few, too many and nested parameters * Provide consistent behaviour between all built-in feature-like macros * Simplify the implementation of macro logic * Fix __is_identifier to correctly return '0' for non-identifiers Reviewers: doug.gregor, rsmith Subscribers: rsmith, cfe-commits Differential Revision: http://reviews.llvm.org/D17149 llvm-svn: 265381 | ||||
* | Refactored duplicate string literal lexing code within Preprocessor, into a | Andy Gibbs | 2012-11-17 | 1 | -1/+1 |
| | | | | | | | | | | | | | common LexStringLiteral function. In doing so, some consistency problems have been ironed out (e.g. where the first token in the string literal was lexed with macro expansion, but subsequent ones were not) and also an erroneous diagnostic has been corrected. LexStringLiteral is complemented by a FinishLexStringLiteral function which can be used in the situation where the first token of the string literal has already been lexed. llvm-svn: 168266 | ||||
* | Fix handling of invalid uses of the __has_warning builtin macro | Andy Gibbs | 2012-11-17 | 1 | -0/+5 |
llvm-svn: 168265 |