diff options
| author | Douglas Gregor <dgregor@apple.com> | 2010-12-01 17:42:47 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2010-12-01 17:42:47 +0000 |
| commit | a61b3e7443056f8d05b24ca4cbea90fe66235d6b (patch) | |
| tree | 5ed483b461473fc0d663356e107a19343e5b9f3b /lib/CodeGen/CGExpr.cpp | |
| parent | d11617f6e0622bbf843d6f8d60c441f844e46e9a (diff) | |
| download | clang-a61b3e7443056f8d05b24ca4cbea90fe66235d6b.tar.gz clang-a61b3e7443056f8d05b24ca4cbea90fe66235d6b.tar.bz2 clang-a61b3e7443056f8d05b24ca4cbea90fe66235d6b.tar.xz | |
After parsing a ':' in an enum-specifier within class context,
disambiguate between an expression (for a bit-field width) and a type
(for a fixed underlying type). Since the disambiguation can be
expensive (due to tentative parsing), we perform a simplistic
disambiguation based on one-token lookahead before going into the
full-blown tentative parsing. Based on a patch by Daniel Wallin.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120582 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExpr.cpp')
0 files changed, 0 insertions, 0 deletions
