Custom Rules Check - Struct
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Chris
le 23 Jan 2014
Réponse apportée : Christian Bard
le 3 Fév 2014
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
0 commentaires
Réponse acceptée
Christian Bard
le 3 Fév 2014
Would you please try with a regexp like the following: .*STRUCT.*
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Run Settings dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!