File tree Expand file tree Collapse file tree 6 files changed +33
-0
lines changed
usageofassemblernotdocumented
usageofassemblernotdocumented Expand file tree Collapse file tree 6 files changed +33
-0
lines changed Original file line number Diff line number Diff line change
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. |
Original file line number Diff line number Diff line change
1
+ // GENERATED FILE - DO NOT MODIFY
2
+ import codingstandards.cpp.rules.hashoperatorsused.HashOperatorsUsed
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
1
+ // NOTICE: THE TEST CASES BELOW ARE ALSO INCLUDED IN THE C++ TEST CASE AND
2
+ // CHANGES SHOULD BE REFLECTED THERE AS WELL.
1
3
// COMPLIANT
2
4
void test_assembly_is_documented () {
3
5
// This comment serves as documentation
Original file line number Diff line number Diff line change
1
+ // NOTICE: THE TEST CASES BELOW ARE ALSO INCLUDED IN THE C TEST CASE AND
2
+ // CHANGES SHOULD BE REFLECTED THERE AS WELL.
1
3
#define MACROONE 1 // COMPLIANT
2
4
3
5
#define MACROTWO ' #' // COMPLIANT
Original file line number Diff line number Diff line change
1
+ // NOTICE: THE TEST CASES BELOW ARE ALSO INCLUDED IN THE C TEST CASE AND
2
+ // CHANGES SHOULD BE REFLECTED THERE AS WELL.
1
3
// COMPLIANT
2
4
void test_assembly_is_documented () {
3
5
// This comment serves as documentation
You can’t perform that action at this time.
0 commit comments