Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0df6fee

Browse filesBrowse files
committed
fixes
1 parent 2fc4350 commit 0df6fee
Copy full SHA for 0df6fee

File tree

6 files changed

+33
-0
lines changed
Filter options

6 files changed

+33
-0
lines changed
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
| test.cpp:9:1:9:22 | #define MACROFIVE(X) #X | Macro definition uses the # or ## operator. |
2+
| test.cpp:11:1:11:26 | #define MACROSIX(X,Y) X ## Y | Macro definition uses the # or ## operator. |
3+
| test.cpp:13:1:13:29 | #define MACROSEVEN "##'" #"#" | Macro definition uses the # or ## operator. |
4+
| test.cpp:15:1:15:28 | #define MACROEIGHT '##' #"#" | Macro definition uses the # or ## operator. |
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// GENERATED FILE - DO NOT MODIFY
2+
import codingstandards.cpp.rules.hashoperatorsused.HashOperatorsUsed
+21Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// NOTICE: THE TEST CASES BELOW ARE ALSO INCLUDED IN THE C++ TEST CASE AND
2+
// CHANGES SHOULD BE REFLECTED THERE AS WELL.
3+
#define MACROONE 1 // COMPLIANT
4+
5+
#define MACROTWO '#' // COMPLIANT
6+
7+
#define MACROTHREE "##" // COMPLIANT
8+
9+
#define MACROFOUR "##" + "#" // COMPLIANT
10+
11+
#define MACROFIVE(X) #X // NON_COMPLIANT
12+
13+
#define MACROSIX(X, Y) X##Y // NON_COMPLIANT
14+
15+
#define MACROSEVEN "##'" #"#" // NON_COMPLIANT
16+
17+
#define MACROEIGHT '##' #"#" // NON_COMPLIANT
18+
19+
#define MACRONINE "##\"\"" + "#" // COMPLIANT
20+
21+
#define MACROTEN "##\"\"'" + "#" // COMPLIANT

‎c/common/test/rules/usageofassemblernotdocumented/test.c

Copy file name to clipboardExpand all lines: c/common/test/rules/usageofassemblernotdocumented/test.c
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// NOTICE: THE TEST CASES BELOW ARE ALSO INCLUDED IN THE C++ TEST CASE AND
2+
// CHANGES SHOULD BE REFLECTED THERE AS WELL.
13
// COMPLIANT
24
void test_assembly_is_documented() {
35
// This comment serves as documentation

‎cpp/common/test/rules/hashoperatorsused/test.cpp

Copy file name to clipboardExpand all lines: cpp/common/test/rules/hashoperatorsused/test.cpp
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// NOTICE: THE TEST CASES BELOW ARE ALSO INCLUDED IN THE C TEST CASE AND
2+
// CHANGES SHOULD BE REFLECTED THERE AS WELL.
13
#define MACROONE 1 // COMPLIANT
24

35
#define MACROTWO '#' // COMPLIANT

‎cpp/common/test/rules/usageofassemblernotdocumented/test.cpp

Copy file name to clipboardExpand all lines: cpp/common/test/rules/usageofassemblernotdocumented/test.cpp
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// NOTICE: THE TEST CASES BELOW ARE ALSO INCLUDED IN THE C TEST CASE AND
2+
// CHANGES SHOULD BE REFLECTED THERE AS WELL.
13
// COMPLIANT
24
void test_assembly_is_documented() {
35
// This comment serves as documentation

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.