Last active
November 16, 2017 07:12
-
-
Save Hyftar/27189d7a287fef1cfd49a89b696d25cf to your computer and use it in GitHub Desktop.
Cpp header method regex pattern
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/^\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