Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit0df6fee

Browse files
committed
fixes
1 parent2fc4350 commit0df6fee

File tree

6 files changed

+33
-0
lines changed

6 files changed

+33
-0
lines changed
Lines 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. |
Lines 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
Lines 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+
#defineMACROONE 1 // COMPLIANT
4+
5+
#defineMACROTWO '#' // COMPLIANT
6+
7+
#defineMACROTHREE "##" // COMPLIANT
8+
9+
#defineMACROFOUR "##" + "#" // COMPLIANT
10+
11+
#defineMACROFIVE(X) #X // NON_COMPLIANT
12+
13+
#defineMACROSIX(X,Y) X##Y // NON_COMPLIANT
14+
15+
#defineMACROSEVEN "##'" #"#" // NON_COMPLIANT
16+
17+
#defineMACROEIGHT '##' #"#" // NON_COMPLIANT
18+
19+
#defineMACRONINE "##\"\"" + "#" // COMPLIANT
20+
21+
#defineMACROTEN "##\"\"'" + "#" // COMPLIANT

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

Lines 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
voidtest_assembly_is_documented() {
35
// This comment serves as documentation

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

Lines 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
#defineMACROONE1// COMPLIANT
24

35
#defineMACROTWO'#'// COMPLIANT

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

Lines 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
voidtest_assembly_is_documented() {
35
// This comment serves as documentation

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp