Allow extern "C" to have no whitespace between end of quotes and start of opening brace

This commit is contained in:
Mark VanderVoord
2016-03-14 07:06:29 -04:00
parent fe78ef6d64
commit a20b14a575
+1 -1
View File
@@ -74,7 +74,7 @@ class CMockHeaderParser
# remove preprocessor statements and extern "C"
source.gsub!(/^\s*#.*/, '')
source.gsub!(/extern\s+\"C\"\s+\{/, '')
source.gsub!(/extern\s+\"C\"\s*\{/, '')
# enums, unions, structs, and typedefs can all contain things (e.g. function pointers) that parse like function prototypes, so yank them
# forward declared structs are removed before struct definitions so they don't mess up real thing later. we leave structs keywords in function prototypes