-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Implement fixits for malformed 'main' declaration #8476
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
assigned to @dwblaikie |
I've made some progress on this already. r139282 implements fixits for declaring main 'virtual' and 'static'. I'm also going to resolve llvm/llvm-bugzilla-archive#8269 as fixed/no repro because clang no longer suggests the wrong fixit (for the return type of main). In fact, it doesn't suggest any fixit at all - we should address that in this bug. [assigning to myself since this bug is fairly old & seems untouched, so I assume it's not being actively worked on by the person currently assigned] |
Dmitri addressed another part of this in r172684, providing a fixit for an incorrect return type. |
Added a fixit for _Noreturn in r173024. |
mentioned in issue llvm/llvm-bugzilla-archive#8269 |
There are quite a few fixits now for misdeclared |
…-in-memory-6.0 [lldb] [ObjectFileMachO] LLVM_COV is not mapped into firmware memory (llvm#86359)
Extended Description
[7:30pm] gabor: dgregor: FixIt idea: error: C++ requires a type specifier for all declarations
[7:30pm] gabor: main (int , const char * argv [])
[7:30pm] gabor: ^--- "int "
Since main must return "int" this is an always applicable fixit.
I am not so sure with the main arguments
But these are often mis-declared, so a fixit would be useful too.
The text was updated successfully, but these errors were encountered: