ICG handling of \brief in comments differs on Linux and Mac #453

Adjusted regular expression so it will work on the mac.  Changed "\w" to
"[a-zA-Z0-9]".
This commit is contained in:
Alex Lin 2017-08-21 14:03:49 -05:00
parent 9207bd0ab1
commit 70a81acc6c

View File

@ -135,7 +135,7 @@ void FieldDescription::parseComment(std::string comment) {
//std::cout << "2. " << comment << std::endl ;
// remove optional doxygen keyword
comment = get_regex_field(comment , "(\\\\\\w+[ \t\n\r]*)?(.*)" , 2) ;
comment = get_regex_field(comment , "(\\\\[a-zA-Z0-9]+)?[ \t\n\r]*(.*)" , 2) ;
//std::cout << "3. " << comment << std::endl ;
ret_str = get_regex_field(comment , "@?trick_chkpnt_io[\\({]([^\\)}]+)[\\)}]" , 1) ;