MATLAB Answers

Custom Rules Check - Struct

3 ビュー (過去 30 日間)
Chris 2014 年 1 月 23 日
回答済み: Christian Bard 2014 年 2 月 3 日
I'm using Polyspace Bug Finder and I am trying to set a custom rule check using the "Check custom rules" interface under "Coding Rules."
Under "Structs->All struct tags must follow the specified pattern" I need to provide a regular expression that ensures that the struct tag contains the text "STRUCT" in uppercase. For example: typedef struct SS_DATA_STRUCT { blah blah blah }
I've tried quite a few regex, unsuccessfully. Any suggestions?
Thank you. Chris


Christian Bard
Christian Bard 2014 年 2 月 3 日
Would you please try with a regexp like the following: .*STRUCT.*

その他の回答 (0 件)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by