From 70a81acc6cb755a381ef9b3f904565a531d06107 Mon Sep 17 00:00:00 2001 From: Alex Lin Date: Mon, 21 Aug 2017 14:03:49 -0500 Subject: [PATCH] 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]". --- trick_source/codegen/Interface_Code_Gen/FieldDescription.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trick_source/codegen/Interface_Code_Gen/FieldDescription.cpp b/trick_source/codegen/Interface_Code_Gen/FieldDescription.cpp index f1cd4784..79a921a1 100644 --- a/trick_source/codegen/Interface_Code_Gen/FieldDescription.cpp +++ b/trick_source/codegen/Interface_Code_Gen/FieldDescription.cpp @@ -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) ;