[cfe-dev] "expected function body" diagnostic rewording

Eric Christopher echristo at apple.com
Sat Jul 10 16:59:17 PDT 2010


> 
> While the clang diagnostic was a lot more helpful in pinpointing the
> actual error because it complained about the header instead of the
> source file including it, the diagnostic could be improved a bit by the
> following:
> - Change the wording from "error: expected function body after function
> declarator" to "error: expected function body or semicolon after
> function declarator/prototype".
> - Print the preceding code line as well because that's where the
> semicolon is missing.

I went ahead and just filed this:

http://llvm.org/bugs/show_bug.cgi?id=7617

-eric



More information about the cfe-dev mailing list