mirror of
https://github.com/ThrowTheSwitch/CMock.git
synced 2026-08-20 18:19:55 +00:00
Allow extern "C" to have no whitespace between end of quotes and start of opening brace
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user