Forráskód Böngészése

Merge branch 'bugfix/cmock_strippables_patterns' into 'master'

[mocks]: fixed strippables patterns for CMock

See merge request espressif/esp-idf!14884
Omar Chebib 4 éve
szülő
commit
973fbe1a3b
1 módosított fájl, 6 hozzáadás és 4 törlés
  1. 6 4
      tools/mocks/freertos/mock/mock_config.yaml

+ 6 - 4
tools/mocks/freertos/mock/mock_config.yaml

@@ -11,8 +11,10 @@
             - callback
           :strippables:
             - '(?:__attribute__\s*\(+.*?\)+)'
-            - '(?:vQueueAddToRegistry\s*\(+.*?\)+)'
-            - '(?:vQueueUnregisterQueue\s*\(+.*?\)+)'
-            - '(?:pcQueueGetName\s*\(+.*?\)+)'
-            - '(?:vTaskSetThreadLocalStoragePointerAndDelCallback\s*\(+.*?\)+)'
+              # following functions are disabled by configQUEUE_REGISTRY_SIZE
+            - '(?:vQueueAddToRegistry\s*\([\s\w\*_,]*\))'
+            - '(?:vQueueUnregisterQueue\s*\([\s\w\*_,]*\))'
+            - '(?:pcQueueGetName\s*\([\s\w\*_,]*\))'
+              # following function is disabled by configTHREAD_LOCAL_STORAGE_DELETE_CALLBACKS
+            - '(?:vTaskSetThreadLocalStoragePointerAndDelCallback\s*\([\s\w\*_,]*\))'
             - PRIVILEGED_FUNCTION