Menu

#1587 scriptedwizard : ensure header guard macro is a valid C identifier

Undefined
applied
nobody
Patch
2026-02-15
2026-02-15
Christo
No

When selecting File->New->File->C/C++ header, in the wizard, the header guard is generated based on file name. But the header guard will cause compilation error if filename contains characters such as hyphen. Attaching patch to ensure the generated header guard obeys C identifier requirements.

1 Attachments

Discussion

  • Miguel Gimenez

    Miguel Gimenez - 2026-02-15
    • status: open --> applied
     
  • Miguel Gimenez

    Miguel Gimenez - 2026-02-15

    Applied in [r13788], thank you.

     

    Related

    Commit: [r13788]


Log in to post a comment.

MongoDB Logo MongoDB