Skip to content

Instantly share code, notes, and snippets.

@Hyftar
Last active November 16, 2017 07:12
Show Gist options
  • Save Hyftar/27189d7a287fef1cfd49a89b696d25cf to your computer and use it in GitHub Desktop.
Save Hyftar/27189d7a287fef1cfd49a89b696d25cf to your computer and use it in GitHub Desktop.
Cpp header method regex pattern
/^\s*((?:(?:\s*const\s*)|(?:\s*static\s*)|(?:\s*virtual\s*)|(?:\s*volatile\s*)|(?:\s*friend\s*)){0,5}\s*\w+(?::{2}\w+)*(?:\s*?[&*]\s*?)*)??\s*([\w~]+)\s*(\(.*\))\s*?(\sconst)?\s*;/gm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment