-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
One primary change is to add -e option to replace comments with empty comments, either /* */ or // (with nothing after it except the newline). This makes some forms of analysis easier (and also means there isn't trailing blanks in the output unless there were trailing blanks in the input. The other primary change affects the output from -c (print comments instead of code); newlines are preserved in appropriate locations, so that comments on separate lines are printed on separate lines. This makes the output easier to read. One minor change is that the 'feature' names were changed and made more systematic.
- Loading branch information
Showing
54 changed files
with
745 additions
and
498 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,18 @@ | ||
/* | ||
@(#)File: $RCSfile: scc-test.example2-c++98-c.1,v $ | ||
@(#)Version: $Revision: 1.1 $ | ||
@(#)Last changed: $Date: 2016/05/22 19:39:46 $ | ||
@(#)Version: $Revision: 1.2 $ | ||
@(#)Last changed: $Date: 2017/10/18 06:38:59 $ | ||
@(#)Purpose: Test SCC on core functionality | ||
@(#)Author: J Leffler | ||
@(#)Copyright: (C) JLSS 1997,2003,2007,2013-15 | ||
@(#)Product: SCC Version 6.60 (2016-06-12) | ||
*//* Mainly for testing *//* Retained comments */// C++ style comments// The newline is part of the comment.// The newline should be printed.// The newline should probably still be printed?/* C style *//* or functions *//*EOF*/ | ||
@(#)Product: SCC Version 6.70 (2017-10-17) | ||
*/ | ||
/* Mainly for testing */ | ||
/* Retained comments */ | ||
// C++ style comments | ||
// The newline is part of the comment. | ||
// The newline should be printed. | ||
// The newline should probably still be printed? | ||
/* C style */ | ||
/* or functions */ | ||
/*EOF*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
scc: scc-test.example2.c:13: Double slash comment used but not supported in C90 | ||
scc: scc-test.example2.c:14: Double slash comment used but not supported in C90 | ||
scc: scc-test.example2.c:15: Double slash comment used but not supported in C90 | ||
scc: scc-test.example2.c:16: Double slash comment used but not supported in C90 | ||
scc: scc-test.example2.c:13: Double slash comment feature used but not supported in C90 | ||
scc: scc-test.example2.c:14: Double slash comment feature used but not supported in C90 | ||
scc: scc-test.example2.c:15: Double slash comment feature used but not supported in C90 | ||
scc: scc-test.example2.c:16: Double slash comment feature used but not supported in C90 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
/* | ||
@(#)File: $RCSfile: scc-test.example2-c90-c.1,v $ | ||
@(#)Version: $Revision: 1.1 $ | ||
@(#)Last changed: $Date: 2016/05/22 19:39:46 $ | ||
@(#)Version: $Revision: 1.2 $ | ||
@(#)Last changed: $Date: 2017/10/18 06:38:59 $ | ||
@(#)Purpose: Test SCC on core functionality | ||
@(#)Author: J Leffler | ||
@(#)Copyright: (C) JLSS 1997,2003,2007,2013-15 | ||
@(#)Product: SCC Version 6.60 (2016-06-12) | ||
*//* Mainly for testing *//* Retained comments *//* C style *//* or functions *//*EOF*/ | ||
@(#)Product: SCC Version 6.70 (2017-10-17) | ||
*/ | ||
/* Mainly for testing */ | ||
/* Retained comments */ | ||
/* C style */ | ||
/* or functions */ | ||
/*EOF*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
scc: scc-test.example2.c:13: Double slash comment used but not supported in C90 | ||
scc: scc-test.example2.c:14: Double slash comment used but not supported in C90 | ||
scc: scc-test.example2.c:15: Double slash comment used but not supported in C90 | ||
scc: scc-test.example2.c:16: Double slash comment used but not supported in C90 | ||
scc: scc-test.example2.c:13: Double slash comment feature used but not supported in C90 | ||
scc: scc-test.example2.c:14: Double slash comment feature used but not supported in C90 | ||
scc: scc-test.example2.c:15: Double slash comment feature used but not supported in C90 | ||
scc: scc-test.example2.c:16: Double slash comment feature used but not supported in C90 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
scc: scc-test.example2.c:13: Double slash comment used but not supported in C90 | ||
scc: scc-test.example2.c:14: Double slash comment used but not supported in C90 | ||
scc: scc-test.example2.c:15: Double slash comment used but not supported in C90 | ||
scc: scc-test.example2.c:16: Double slash comment used but not supported in C90 | ||
scc: scc-test.example2.c:13: Double slash comment feature used but not supported in C90 | ||
scc: scc-test.example2.c:14: Double slash comment feature used but not supported in C90 | ||
scc: scc-test.example2.c:15: Double slash comment feature used but not supported in C90 | ||
scc: scc-test.example2.c:16: Double slash comment feature used but not supported in C90 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
scc: scc-test.example2.c:13: Double slash comment used but not supported in C90 | ||
scc: scc-test.example2.c:14: Double slash comment used but not supported in C90 | ||
scc: scc-test.example2.c:15: Double slash comment used but not supported in C90 | ||
scc: scc-test.example2.c:16: Double slash comment used but not supported in C90 | ||
scc: scc-test.example2.c:13: Double slash comment feature used but not supported in C90 | ||
scc: scc-test.example2.c:14: Double slash comment feature used but not supported in C90 | ||
scc: scc-test.example2.c:15: Double slash comment feature used but not supported in C90 | ||
scc: scc-test.example2.c:16: Double slash comment feature used but not supported in C90 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,18 @@ | ||
/* | ||
@(#)File: $RCSfile: scc-test.example2-c99-c.1,v $ | ||
@(#)Version: $Revision: 1.1 $ | ||
@(#)Last changed: $Date: 2016/05/22 19:39:46 $ | ||
@(#)Version: $Revision: 1.2 $ | ||
@(#)Last changed: $Date: 2017/10/18 06:38:59 $ | ||
@(#)Purpose: Test SCC on core functionality | ||
@(#)Author: J Leffler | ||
@(#)Copyright: (C) JLSS 1997,2003,2007,2013-15 | ||
@(#)Product: SCC Version 6.60 (2016-06-12) | ||
*//* Mainly for testing *//* Retained comments */// C++ style comments// The newline is part of the comment.// The newline should be printed.// The newline should probably still be printed?/* C style *//* or functions *//*EOF*/ | ||
@(#)Product: SCC Version 6.70 (2017-10-17) | ||
*/ | ||
/* Mainly for testing */ | ||
/* Retained comments */ | ||
// C++ style comments | ||
// The newline is part of the comment. | ||
// The newline should be printed. | ||
// The newline should probably still be printed? | ||
/* C style */ | ||
/* or functions */ | ||
/*EOF*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
scc: scc-test.example3.c:21: Unicode feature used but not supported in C++98 | ||
scc: scc-test.example3.c:22: Unicode feature used but not supported in C++98 | ||
scc: scc-test.example3.c:21: Unicode character or string feature used but not supported in C++98 | ||
scc: scc-test.example3.c:22: Unicode character or string feature used but not supported in C++98 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
scc: scc-test.example3.c:12: Double slash comment used but not supported in C90 | ||
scc: scc-test.example3.c:21: Unicode feature used but not supported in C90 | ||
scc: scc-test.example3.c:22: Unicode feature used but not supported in C90 | ||
scc: scc-test.example3.c:12: Double slash comment feature used but not supported in C90 | ||
scc: scc-test.example3.c:21: Unicode character or string feature used but not supported in C90 | ||
scc: scc-test.example3.c:22: Unicode character or string feature used but not supported in C90 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
scc: scc-test.example3.c:21: Unicode feature used but not supported in C99 | ||
scc: scc-test.example3.c:22: Unicode feature used but not supported in C99 | ||
scc: scc-test.example3.c:21: Unicode character or string feature used but not supported in C99 | ||
scc: scc-test.example3.c:22: Unicode character or string feature used but not supported in C99 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
scc: scc-test.numpunct.cpp:11: Hexadecimal floating point constant used but not supported in C++14 | ||
scc: scc-test.numpunct.cpp:12: Hexadecimal floating point constant used but not supported in C++14 | ||
scc: scc-test.numpunct.cpp:11: Hexadecimal floating point constant feature used but not supported in C++14 | ||
scc: scc-test.numpunct.cpp:12: Hexadecimal floating point constant feature used but not supported in C++14 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
scc: scc-test.rawstring.cpp:34: Raw string used but not supported in C11 | ||
scc: scc-test.rawstring.cpp:37: Raw string used but not supported in C11 | ||
scc: scc-test.rawstring.cpp:38: Raw string used but not supported in C11 | ||
scc: scc-test.rawstring.cpp:40: Raw string used but not supported in C11 | ||
scc: scc-test.rawstring.cpp:42: Raw string used but not supported in C11 | ||
scc: scc-test.rawstring.cpp:44: Raw string used but not supported in C11 | ||
scc: scc-test.rawstring.cpp:46: Raw string used but not supported in C11 | ||
scc: scc-test.rawstring.cpp:51: Raw string used but not supported in C11 | ||
scc: scc-test.rawstring.cpp:154: Raw string used but not supported in C11 | ||
scc: scc-test.rawstring.cpp:162: Raw string used but not supported in C11 | ||
scc: scc-test.rawstring.cpp:167: Raw string used but not supported in C11 | ||
scc: scc-test.rawstring.cpp:169: Raw string used but not supported in C11 | ||
scc: scc-test.rawstring.cpp:176: Raw string used but not supported in C11 | ||
scc: scc-test.rawstring.cpp:177: Raw string used but not supported in C11 | ||
scc: scc-test.rawstring.cpp:179: Raw string used but not supported in C11 | ||
scc: scc-test.rawstring.cpp:34: Raw string feature used but not supported in C11 | ||
scc: scc-test.rawstring.cpp:37: Raw string feature used but not supported in C11 | ||
scc: scc-test.rawstring.cpp:38: Raw string feature used but not supported in C11 | ||
scc: scc-test.rawstring.cpp:40: Raw string feature used but not supported in C11 | ||
scc: scc-test.rawstring.cpp:42: Raw string feature used but not supported in C11 | ||
scc: scc-test.rawstring.cpp:44: Raw string feature used but not supported in C11 | ||
scc: scc-test.rawstring.cpp:46: Raw string feature used but not supported in C11 | ||
scc: scc-test.rawstring.cpp:51: Raw string feature used but not supported in C11 | ||
scc: scc-test.rawstring.cpp:154: Raw string feature used but not supported in C11 | ||
scc: scc-test.rawstring.cpp:162: Raw string feature used but not supported in C11 | ||
scc: scc-test.rawstring.cpp:167: Raw string feature used but not supported in C11 | ||
scc: scc-test.rawstring.cpp:169: Raw string feature used but not supported in C11 | ||
scc: scc-test.rawstring.cpp:176: Raw string feature used but not supported in C11 | ||
scc: scc-test.rawstring.cpp:177: Raw string feature used but not supported in C11 | ||
scc: scc-test.rawstring.cpp:179: Raw string feature used but not supported in C11 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
scc: scc-test.ucns.c:33: Double slash comment used but not supported in C90 | ||
scc: scc-test.ucns.c:37: Universal character names feature used but not supported in C90 | ||
scc: scc-test.ucns.c:38: Universal character names feature used but not supported in C90 | ||
scc: scc-test.ucns.c:39: Universal character names feature used but not supported in C90 | ||
scc: scc-test.ucns.c:72: Double slash comment used but not supported in C90 | ||
scc: scc-test.ucns.c:94: Double slash comment used but not supported in C90 | ||
scc: scc-test.ucns.c:95: Double slash comment used but not supported in C90 | ||
scc: scc-test.ucns.c:96: Double slash comment used but not supported in C90 | ||
scc: scc-test.ucns.c:101: Double slash comment used but not supported in C90 | ||
scc: scc-test.ucns.c:106: Double slash comment used but not supported in C90 | ||
scc: scc-test.ucns.c:111: Double slash comment used but not supported in C90 | ||
scc: scc-test.ucns.c:124: Double slash comment used but not supported in C90 | ||
scc: scc-test.ucns.c:141: Universal character names feature used but not supported in C90 | ||
scc: scc-test.ucns.c:142: Universal character names feature used but not supported in C90 | ||
scc: scc-test.ucns.c:142: Double slash comment used but not supported in C90 | ||
scc: scc-test.ucns.c:143: Double slash comment used but not supported in C90 | ||
scc: scc-test.ucns.c:143: Double slash comment used but not supported in C90 | ||
scc: scc-test.ucns.c:144: Double slash comment used but not supported in C90 | ||
scc: scc-test.ucns.c:144: Universal character names feature used but not supported in C90 | ||
scc: scc-test.ucns.c:144: Double slash comment used but not supported in C90 | ||
scc: scc-test.ucns.c:145: Universal character names feature used but not supported in C90 | ||
scc: scc-test.ucns.c:146: Universal character names feature used but not supported in C90 | ||
scc: scc-test.ucns.c:147: Universal character names feature used but not supported in C90 | ||
scc: scc-test.ucns.c:33: Double slash comment feature used but not supported in C90 | ||
scc: scc-test.ucns.c:37: Universal character name feature used but not supported in C90 | ||
scc: scc-test.ucns.c:38: Universal character name feature used but not supported in C90 | ||
scc: scc-test.ucns.c:39: Universal character name feature used but not supported in C90 | ||
scc: scc-test.ucns.c:72: Double slash comment feature used but not supported in C90 | ||
scc: scc-test.ucns.c:94: Double slash comment feature used but not supported in C90 | ||
scc: scc-test.ucns.c:95: Double slash comment feature used but not supported in C90 | ||
scc: scc-test.ucns.c:96: Double slash comment feature used but not supported in C90 | ||
scc: scc-test.ucns.c:101: Double slash comment feature used but not supported in C90 | ||
scc: scc-test.ucns.c:106: Double slash comment feature used but not supported in C90 | ||
scc: scc-test.ucns.c:111: Double slash comment feature used but not supported in C90 | ||
scc: scc-test.ucns.c:124: Double slash comment feature used but not supported in C90 | ||
scc: scc-test.ucns.c:141: Universal character name feature used but not supported in C90 | ||
scc: scc-test.ucns.c:142: Universal character name feature used but not supported in C90 | ||
scc: scc-test.ucns.c:142: Double slash comment feature used but not supported in C90 | ||
scc: scc-test.ucns.c:143: Double slash comment feature used but not supported in C90 | ||
scc: scc-test.ucns.c:143: Double slash comment feature used but not supported in C90 | ||
scc: scc-test.ucns.c:144: Double slash comment feature used but not supported in C90 | ||
scc: scc-test.ucns.c:144: Universal character name feature used but not supported in C90 | ||
scc: scc-test.ucns.c:144: Double slash comment feature used but not supported in C90 | ||
scc: scc-test.ucns.c:145: Universal character name feature used but not supported in C90 | ||
scc: scc-test.ucns.c:146: Universal character name feature used but not supported in C90 | ||
scc: scc-test.ucns.c:147: Universal character name feature used but not supported in C90 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* */ | ||
|
||
/* */ | ||
/* */ | ||
Including trailing // | ||
What is the correct behaviour? // | ||
// | ||
And with comment stripping? // | ||
So that this text appears on a separate line from the question. | ||
And what about newlines and /* */ comments when they are retained? | ||
Perhaps a newline should be generated when the line had a comment on it somewhere? | ||
Which function /* */ controls this? | ||
|
||
/* */ |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* | ||
@(#)File: $RCSfile: scc.test-08.example2-ec.1,v $ | ||
@(#)Version: $Revision: 1.2 $ | ||
@(#)Last changed: $Date: 2017/10/18 06:38:59 $ | ||
@(#)Purpose: Test SCC on core functionality | ||
@(#)Author: J Leffler | ||
@(#)Copyright: (C) JLSS 1997,2003,2007,2013-15 | ||
@(#)Product: SCC Version 6.70 (2017-10-17) | ||
*/ | ||
/* Mainly for testing */ | ||
/* Retained comments */ | ||
// C++ style comments | ||
// The newline is part of the comment. | ||
// The newline should be printed. | ||
// The newline should probably still be printed? | ||
/* C style */ | ||
/* or functions */ | ||
/*EOF*/ |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
*/ | ||
|
||
/* */ | ||
/* */ | ||
Including trailing // | ||
What is the correct behaviour? // | ||
// | ||
And with comment stripping? // | ||
So that this text appears on a separate line from the question. | ||
And what about newlines and /* */ comments when they are retained? | ||
Perhaps a newline should be generated when the line had a comment on it somewhere? | ||
Which function /* */ controls this? | ||
|
||
/* */ |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.