Skip to content

Commit 3b7cf48

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

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

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

Lines 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

Lines 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

Lines 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

Lines 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)