PrimeIntellect/SWE-rebench-V2 huggingface dataset:
Repository: apple/swift-syntax (swift)

Issue:
Parsing fails if line break between enum case element name and parameter clause
### Issue Kind

Parse of Valid Source Failed

### Source Code

This errors out without good reason (with both the new and legacy parsers):
```swift
enum E {
  case a
    (Int)
}
```

Similarly formatted function/subscript parameter lists parse fine.

### Description

_No response_

Pull request:
Resolves #1709

Patch:
diff --git a/Sources/SwiftParser/Declarations.swift b/Sources/SwiftParser/Declarations.swift
index fcfba32398b..a29b934e32d 100644
--- a/Sources/SwiftParser/Declarations.swift
+++ b/Sources/SwiftParser/Declarations.swift
@@ -918,7 +918,7 @@ extension Parser {
         let (unexpectedBeforeName, name) = self.expectIdentifier(keywordRecovery: true)
 
         let associatedValue: RawEnumCaseParameterClauseSyntax?
-        if self.at(TokenSpec(.leftParen, allowAtStartOfLine: false)) {
+        if self.at(TokenSpec(.leftParen)) {
           associatedValue = self.parseParameterClause(RawEnumCaseParameterClauseSyntax.self) { parser in
             parser.parseEnumCaseParameter()
           }


Test patch:
diff --git a/Tests/SwiftParserTest/DeclarationTests.swift b/Tests/SwiftParserTest/DeclarationTests.swift
index e4a93b5a5a0..d76a27d12d9 100644
--- a/Tests/SwiftParserTest/DeclarationTests.swift
+++ b/Tests/SwiftParserTest/DeclarationTests.swift
@@ -26,6 +26,7 @@ final class DeclarationTests: XCTestCase {
 
     assertParse(#"@_private(sourceFile: "YetAnotherFile.swift") import Foundation"#)
   }
+
   func testStructParsing() {
     assertParse("struct Foo {}")
   }
diff --git a/Tests/SwiftParserTest/translated/EnumTests.swift b/Tests/SwiftParserTest/translated/EnumTests.swift
index 159624e0d2f..34afc9db9e7 100644
--- a/Tests/SwiftParserTest/translated/EnumTests.swift
+++ b/Tests/SwiftParserTest/translated/EnumTests.swift
@@ -1450,4 +1450,15 @@ final class EnumTests: XCTestCase {
       """#
     )
   }
+
+  func parseEnumCaseElementParameterOnNewline() {
+    assertParse(
+      """
+      enum E {
+        case a
+          (Int)
+      }
+      """
+    )
+  }
 }
Repository: google/autocxx (rust)

Issue:
Method `alloc` breaks moveit (compilation error)
**Describe the bug**
Method `alloc` breaks moveit (compilation error)

**To Reproduce**
```c++
struct DataBuf {                                                                                                                                      
    void alloc();                                                                                                                                     
};
```

```rust
generate!("DataBuf");
```

This cause the follow compilation error.
```
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
error[E0046]: not all trait items implemented, missing: `allocate_uninitialized_cpp_storage`
 --> /tmp/.tmpwE2POD/autocxx-ffi-default-gen.rs:1:1415
  |
1 | ...88849ba138 (this) }) } } } unsafe impl autocxx :: moveit :: MakeCppStorage for root :: DataBuf { unsafe fn free_uninitialized_cpp_stor...
  |                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `allocate_uninitialized_cpp_storage` in implementation
  |
  = help: implement the missing item: `unsafe fn allocate_uninitialized_cpp_storage() -> *mut Self { todo!() }`
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
```

Reroducer: https://github.com/google/autocxx/pull/1319

**Expected behavior**

Compiles

**Additional context**


Pull request:
Fix badly named alloc function - fixes #1318
Fixes #1318.

Patch:
diff --git a/engine/src/conversion/analysis/allocators.rs b/engine/src/conversion/analysis/allocators.rs
index da25a776..aab637cd 100644
--- a/engine/src/conversion/analysis/allocators.rs
+++ b/engine/src/conversion/analysis/allocators.rs
@@ -101,11 +101,11 @@ fn create_alloc_and_free(ty_name: QualifiedName) -> impl Iterator<Item = Api<Pod
 }
 
 pub(crate) fn get_alloc_name(ty_name: &QualifiedName) -> QualifiedName {
-    get_name(ty_name, "alloc")
+    get_name(ty_name, "autocxx_alloc")
 }
 
 pub(crate) fn get_free_name(ty_name: &QualifiedName) -> QualifiedName {
-    get_name(ty_name, "free")
+    get_name(ty_name, "autocxx_free")
 }
 
 fn get_name(ty_name: &QualifiedName, label: &str) -> QualifiedName {


Test patch:
diff --git a/integration-tests/tests/integration_test.rs b/integration-tests/tests/integration_test.rs
index 18029436..7c2cccfe 100644
--- a/integration-tests/tests/integration_test.rs
+++ b/integration-tests/tests/integration_test.rs
@@ -12241,6 +12241,19 @@ fn test_ignore_va_list() {
     run_test("", hdr, rs, &["A"], &[]);
 }
 
+#[test]
+fn test_badly_named_alloc() {
+    let hdr = indoc! {"
+        #include <stdarg.h>
+        class A {
+        public:
+            void alloc();
+        };
+    "};
+    let rs = quote! {};
+    run_test("", hdr, rs, &["A"], &[]);
+}
+
 #[test]
 fn test_cpp_union_pod() {
     let hdr = indoc! {"