Maybe it's not about implementing half of a compiler, but only the
features that are used most often. What's more, if one has:
struct foo { /* ... */ };
typedef struct foo foo;
int main() {
foo myfoo;
/* ... */
}
then omnicompletion works for myfoo, even if it doesn't see "struct"
before foo.
Bram Moolenaar wrote:
Kyku -
In fact, it is a C++ program, as #include <iostream> might suggest. The
comment should say "A nonsense C++ file", sorry. In C++ one doesn't need
to write 'class', 'struct' or 'union' in variables definitions. Do you
also mean that ccomplete doesn't support C++ yet? 10e15 C++ users in
this galaxy are rather disappointed ;-)
The completion supports C++ for as far as it looks like C.
C++ is much too complicated to do completion for without "half a
compiler". Nice challenge for someone, too much for me...
- Bram