Bug 245861

Summary: [WGSL] Remove RETURN_NODE_REF_NO_ARGS from Parser
Product: WebKit Reporter: Dan Glastonbury <djg>
Component: WebGPUAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 252233    
Bug Blocks:    

Description Dan Glastonbury 2022-09-29 21:01:07 PDT
This comment in Parser.cpp:

```
// Passing 0 arguments beyond the type to RETURN_NODE_REF is invalid because of a stupid limitation of the C preprocessor
#define RETURN_NODE_REF_NO_ARGS(type) \
    return { makeUniqueRef<AST::type>(CURRENT_SOURCE_SPAN()) };
```

Change be fixed with __VA_OPT__ 

https://stackoverflow.com/questions/68484818/function-like-macros-with-c20-va-opt-error-in-manual-code
Comment 1 Radar WebKit Bug Importer 2022-09-29 21:01:31 PDT
<rdar://problem/100595632>
Comment 2 Dan Glastonbury 2023-02-19 16:19:07 PST

*** This bug has been marked as a duplicate of bug 252233 ***