Skip to content

Fix a number of typos in tests #207

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cpp/autosar/test/rules/A12-8-1/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ class C4 {
C4() : m1(0) {}
C4(C4 const &p1) : m1(p1.m1) {
std::cout << "Copying class C4"
<< std::endl; // NON_COMPLIANT - peformance overhead affecting the
// copying of th object?
<< std::endl; // NON_COMPLIANT - performance overhead affecting
// the copying of the object?
}

private:
Expand Down
2 changes: 1 addition & 1 deletion cpp/autosar/test/rules/A13-5-3/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ int main() {
bar(static_cast<A *>(b)); // NON_COMPLIANT--explicit

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

C c;
bar(c); // NON_COMPLIANT - one pointer with bar
Expand Down
2 changes: 1 addition & 1 deletion cpp/autosar/test/rules/A5-1-1/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include <stdexcept>

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

void test_exception2() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
int g1 = 0;

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

void f1(int p);
void f2(long long p);
Expand Down