[cfe-dev] UCNs/extended characters revisitted
neil at daikokuya.co.uk
Tue Jul 14 07:40:06 PDT 2009
Chris Lattner wrote:-
> Adding a 2.5M database to clang sounds like a non-starter. When we
> actually care enough about this, hopefully there will be a better way to
> go. Neil, do you know of a good way to do this sort of check?
That would indeed be insane. I don't see anything wrong with GCC's
approach. You need three states, not two: invalid in identifiers,
invalid at the start of identifiers, and valid in identifiers. There
are different rules for C and C++. This is hardly performance
critical code; a binary lookup should suffice.
More information about the cfe-dev