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 3b7cf48

Browse filesBrowse files
authored
Merge pull request #207 from jketema/typos
Fix a number of typos in tests
2 parents 512436a + d11b0b9 commit 3b7cf48
Copy full SHA for 3b7cf48

File tree

4 files changed

+5
-5
lines changed
Filter options

4 files changed

+5
-5
lines changed

‎cpp/autosar/test/rules/A12-8-1/test.cpp

Copy file name to clipboardExpand all lines: cpp/autosar/test/rules/A12-8-1/test.cpp
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ class C4 {
4444
C4() : m1(0) {}
4545
C4(C4 const &p1) : m1(p1.m1) {
4646
std::cout << "Copying class C4"
47-
<< std::endl; // NON_COMPLIANT - peformance overhead affecting the
48-
// copying of th object?
47+
<< std::endl; // NON_COMPLIANT - performance overhead affecting
48+
// the copying of the object?
4949
}
5050

5151
private:

‎cpp/autosar/test/rules/A13-5-3/test.cpp

Copy file name to clipboardExpand all lines: cpp/autosar/test/rules/A13-5-3/test.cpp
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ int main() {
3535
bar(static_cast<A *>(b)); // NON_COMPLIANT--explicit
3636

3737
A(*pa)[3] = b; // NON_COMPLIANT - converting B to array of A (size 3)-
38-
// decalartion of variable name pa, pointer to array of A , array size is 3
38+
// declaration of variable name pa, pointer to array of A , array size is 3
3939

4040
C c;
4141
bar(c); // NON_COMPLIANT - one pointer with bar

‎cpp/autosar/test/rules/A5-1-1/test.cpp

Copy file name to clipboardExpand all lines: cpp/autosar/test/rules/A5-1-1/test.cpp
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#include <stdexcept>
33

44
void test_exception1() {
5-
throw "constant string"; // NOT_COMPLIANT - not used in type initialization
5+
throw "constant string"; // NON_COMPLIANT - not used in type initialization
66
}
77

88
void test_exception2() {

‎cpp/cert/test/rules/EXP52-CPP/DoNotRelyOnSideEffectsInSizeOfOperand.cpp

Copy file name to clipboardExpand all lines: cpp/cert/test/rules/EXP52-CPP/DoNotRelyOnSideEffectsInSizeOfOperand.cpp
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
int g1 = 0;
22

3-
unsigned char g2[sizeof(g1++)]; // NOT_COMPLIANT
3+
unsigned char g2[sizeof(g1++)]; // NON_COMPLIANT
44

55
void f1(int p);
66
void f2(long long p);

0 commit comments

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