Skip to content

swift should offer fixit for "#elif" #1221

Closed
@ahoppen

Description

@ahoppen

Description

Swift offers a fixit for #else if -> #elseif.

We should also offer a fixit for #elif, eg:

error: use of unknown directive '#elif'
                    #elif arch(arm64)
                    ^

error: unexpected 'if' keyword following '#else' conditional compilation directive; did you mean '#elseif'?
                    #else if arch(arm64)
                    ~~~~~~^~
                    #elseif

rdar://103506087

Metadata

Metadata

Assignees

No one assigned

    Labels

    SwiftParserBugs in the (new) Parser written in SwiftenhancementNew feature or requestgood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions