From: yao Date: Tue, 26 Mar 2013 04:01:01 +0000 (+0800) Subject: discard comments in kernels.cpp X-Git-Tag: accepted/tizen/ivi/20140515.103456~1^2~882^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f428d1874a008110e0d0cf0ae547064bedebca3a;p=profile%2Fivi%2Fopencv.git discard comments in kernels.cpp --- diff --git a/cmake/cl2cpp.cmake b/cmake/cl2cpp.cmake index ca17c61..4f18e9e 100644 --- a/cmake/cl2cpp.cmake +++ b/cmake/cl2cpp.cmake @@ -18,6 +18,7 @@ foreach(cl ${cl_list}) string(REPLACE "\t" " " lines "${lines}") string(REGEX REPLACE "/\\*([^*]/|\\*[^/]|[^*/])*\\*/" "" lines "${lines}") # multiline comments + string(REGEX REPLACE "/\\*([^\n])*\\*/" "" lines "${lines}") # single-line comments string(REGEX REPLACE "[ ]*//[^\n]*\n" "\n" lines "${lines}") # single-line comments string(REGEX REPLACE "\n[ ]*(\n[ ]*)*" "\n" lines "${lines}") # empty lines & leading whitespace string(REGEX REPLACE "^\n" "" lines "${lines}") # leading new line