swift
ebe2c60f - [Swiftify] Escape param decl refs (#81550)

Comment changes are shownComment changes are hidden
Commit
30 days ago
[Swiftify] Escape param decl refs (#81550) Parameters can be named with keywords without escaping, because it's unambiguous in the grammar that they are parameters. They still need to escaped when referred to inside the function body however. This escapes all references to parameters using backticks. Parameter names are also checked for clashes with the function name - in such cases the parameter is renamed in the same way as unnamed parameters. rdar://151024645
Author
Parents
  • lib/Macros/Sources/SwiftMacros
    • File
      SwiftifyImportMacro.swift
  • test
    • Interop
      • C/swiftify-import
        • Inputs
          • File
            counted-by-noescape.h
        • File
          counted-by-noescape.swift
      • Cxx/stdlib
        • Inputs
          • File
            std-span.h
        • File
          std-span-interface.swift
    • Macros/SwiftifyImport
      • CountedBy
        • File
          Anonymous.swift
        • File
          CountExpr.swift
        • File
          Mutable.swift
        • File
          MutableSpan.swift
        • File
          NamedParams.swift
        • File
          PointerReturn.swift
        • File
          QualifiedTypes.swift
        • File
          SpanAndUnsafeBuffer.swift
        • File
          Unwrapped.swift
      • CxxSpan
        • File
          LifetimeboundSpan.swift
      • SizedBy
        • File
          Opaque.swift
        • File
          Unwrapped.swift