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

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
lcartey merged 3 commits intogithub:mainfromjketema:typos
Mar 1, 2023
Merged
Show file tree
Hide file tree
Changes fromall 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 deletionscpp/autosar/test/rules/A12-8-1/test.cpp
View file
Open in desktop
Original file line numberDiff line numberDiff 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 ofth object?
<< std::endl; // NON_COMPLIANT -performance overhead affecting
//thecopying ofthe object?
}

private:
Expand Down
2 changes: 1 addition & 1 deletioncpp/autosar/test/rules/A13-5-3/test.cpp
View file
Open in desktop
Original file line numberDiff line numberDiff 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 deletioncpp/autosar/test/rules/A5-1-1/test.cpp
View file
Open in desktop
Original file line numberDiff line numberDiff 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
View file
Open in desktop
Original file line numberDiff line numberDiff 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

[8]ページ先頭

©2009-2025 Movatter.jp