11{
2- "TSAR Inline Function Call" : {
2+ "SAPFOR Inline Function Call" : {
33 "prefix" : " #pragma spf transform inline" ,
44 "body" : [ " #pragma spf transform inline${TM_SELECTED_TEXT/([\\ s\\ S]+)/\n {\n $1\n }/}" ],
5- "description" : " Use TSAR to inline function call"
5+ "description" : " Inline function call"
66 },
7- "TSAR Propagate Expression" : {
7+ "SAPFOR Propagate Expression" : {
88 "prefix" : " #pragma spf transform propagate" ,
99 "body" : [ " #pragma spf transform propagate${TM_SELECTED_TEXT/([\\ s\\ S]+)/\n {\n $1\n }/}" ],
10- "description" : " Use TSAR to propagate expressions"
10+ "description" : " Propagate specified expressions or propagate expressions in a whole scope. "
1111 },
12- "TSAR Rename Local" : {
12+ "SAPFOR Rename Local" : {
1313 "prefix" : " #pragma spf transform rename" ,
1414 "body" : [ " #pragma spf transform rename${TM_SELECTED_TEXT/([\\ s\\ S]+)/\n {\n $1\n }/}" ],
15- "description" : " Use TSAR to rename local variables in a specified scope. Each variable will have unique name in the scope"
15+ "description" : " Rename local variables in a scope. Each variable will have unique name in the scope. "
1616 },
17- "TSAR Check" : {
18- "prefix" : " #pragma spf transform check" ,
19- "body" : [ " #pragma spf check ${1|nomacro|} ${TM_SELECTED_TEXT/([\\ s\\ S]+)/\n {\n $1\n }/}" ],
20- "description" : " Use TSAR to check user-defined properties, for example, absence of macro in a specified scope."
17+ "SAPFOR Replace Structure" : {
18+ "prefix" : " #pragma spf transform replace" ,
19+ "body" : [ " #pragma spf transform replace${1/^[a-z|A-Z].*$/($0)/}${2/[a-z|A-Z]/ with($0)/}${3: nostrict}" ],
20+ "description" : " Replace arguments of a structure type with references to members:\n\n From:\n struct STy { int X };\n void foo(struct STy *S) {\n S->X = 5;\n #pragma spf transform replace(S)\n }\n To:\n void foo(int *S_X0) {\n *S_X0 = 5\n }\n "
21+ },
22+ "SAPFOR Assert" : {
23+ "prefix" : " #pragma spf assert" ,
24+ "body" : [ " #pragma spf assert ${1|nomacro|} ${TM_SELECTED_TEXT/([\\ s\\ S]+)/\n {\n $1\n }/}" ],
25+ "description" : " Check specified properties in a scope."
2126 }
2227}
0 commit comments