Skip to content

Commit f8dc2ed

Browse files
codecheck: Fix typos in strings and comments [autosync]
1 parent cb4a556 commit f8dc2ed

10 files changed

Lines changed: 13 additions & 13 deletions

File tree

CodeCheck/All Checks/Language Specific/C and C++/Exception Handling/CPP_EH005/check.upy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def define_options(check):
183183
check.options().checkbox('tryIsThrow', 'Called in try = implicit throw', False)
184184
check.options().checkbox('ctorIsThrow', 'Constructor = implicit throw', False)
185185
check.options().checkbox('dtorIsThrow', 'Destructor = implicit throw', False)
186-
check.options().text('ignoredExtensions', 'Ignored file extensions (space-separated, dots not neccessary)', '.c')
186+
check.options().text('ignoredExtensions', 'Ignored file extensions (space-separated, dots not necessary)', '.c')
187187

188188

189189
def functionThrows(function):

CodeCheck/All Checks/Language Specific/C and C++/Unnecessary Constructs/CPP_U001/check.upl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ sub use_context {
130130
return $lexeme;
131131
}
132132

133-
# Indicate a call reference has occured in a non-use context.
133+
# Indicate a call reference has occurred in a non-use context.
134134
sub nouse_value {
135135
my $ref = shift;
136136
my $check = shift;

CodeCheck/Published Standards/AUTOSAR/A15-3-4/A15-3-4.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ void F1() noexcept(false)
1919
void F2() noexcept(false)
2020
{
2121
std::int32_t ret =
22-
Fn(); // UndCC_FalseNeg - can not be sure whether fn() throws or not - False negative becasue it isn't plausible to flag every function call like this
22+
Fn(); // UndCC_FalseNeg - can not be sure whether fn() throws or not - False negative because it isn't plausible to flag every function call like this
2323

2424
if (ret < 10)
2525
{
@@ -48,7 +48,7 @@ void F3() noexcept(false)
4848
}
4949

5050
catch (std::exception& e) // UndCC_Violation - caught exception is too
51-
// general, no information which error occured
51+
// general, no information which error occurred
5252
{
5353
// Nothing to do
5454
throw;

CodeCheck/Published Standards/AUTOSAR/A15-3-4/check.upy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ void F3() noexcept(false)
102102
}
103103

104104
catch (std::exception& e) // Non-compliant - caught exception is too
105-
// general, no information which error occured
105+
// general, no information which error occurred
106106
{
107107
// Nothing to do
108108
throw;

CodeCheck/Published Standards/SEI Cert Standards/C/EXP46-C/check.upy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def check(check, file):
6767
if lexeme.inactive():
6868
continue
6969

70-
# Find any occurance of ^, &, or |
70+
# Find any occurrence of ^, &, or |
7171
if re.match(r'(\^|&|\|)$', lexeme.text()):
7272
prevLex = lexeme
7373
nextLex = lexeme

CodeCheck/Published Standards/SEI Cert Standards/C/POS39-C/test0.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ void fn_good_recv(int sock) {
2424
}
2525

2626
num = ntohl(num);
27-
printf("We recieved %u from the network!\n", (unsigned int)num);
27+
printf("We received %u from the network!\n", (unsigned int)num);
2828
}

CodeCheck/Published Standards/SEI Cert Standards/C/POS39-C/test1.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ void fn_good_recvfrom(int sock, struct sockaddr *src_addr, socklen_t *src_len) {
3838
}
3939

4040
num = ntohl(num);
41-
printf("We recieved %u from the network!\n", (unsigned int)num);
41+
printf("We received %u from the network!\n", (unsigned int)num);
4242
}
4343

4444
void fn_bad_send(int sock) {
@@ -64,7 +64,7 @@ void fn_good_send(int sock) {
6464
}
6565

6666
num = htonl(num);
67-
printf("We recieved %u from the network!\n", (unsigned int)num);
67+
printf("We received %u from the network!\n", (unsigned int)num);
6868
}
6969

7070
void fn_bad_sendto(int sock, struct sockaddr *dest_addr, socklen_t *dest_len) {
@@ -90,5 +90,5 @@ void fn_good_sendto(int sock, struct sockaddr *dest_addr, socklen_t *dest_len) {
9090
}
9191

9292
num = htonl(num);
93-
printf("We recieved %u from the network!\n", (unsigned int)num);
93+
printf("We received %u from the network!\n", (unsigned int)num);
9494
}

CodeCheck/Published Standards/SEI Cert Standards/Java/NUM13-J/check.upy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def test_global():
101101

102102

103103
def literalToInt(text):
104-
# Remove unneccessary characters
104+
# Remove unnecessary characters
105105
text = re.sub(r'_|l|L', '', text)
106106
if not re.match(r'0x[\d|a-f]+$', text, re.IGNORECASE):
107107
text = re.sub(r'f|F', '', text)

CodeCheck/SciTools' Recommended Checks/RECOMMENDED_07/check.upy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ is not restricted. This may be inconsistent with developer expectations.</p>
9999
'CPP_P019': """\
100100
<p><b>Rationale</b></p>
101101
<p>Placing macros definitions inside blocks makes it appear that the definition
102-
has a scope of that block. Place macros definitions at the begining of the file
102+
has a scope of that block. Place macros definitions at the beginning of the file
103103
to avoid confusion.</p>""",
104104
'M16-0-2': """\
105105
<p><b>Rule</b></p>

CodeCheck/clang/warnings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6728,7 +6728,7 @@
67286728
"<p><b>Description</b></p>",
67296729
"<p>Report findings of the compiler warning flag: -Wmicrosoft-extra-qualification</p>",
67306730
"<p><b>Summary</b></p>",
6731-
"<p>Using the scope resolution operator <code>::</code> when it is not neccessary is a language extension by Microsoft.</p>",
6731+
"<p>Using the scope resolution operator <code>::</code> when it is not necessary is a language extension by Microsoft.</p>",
67326732
"<p><b>Diagnostic Text</b></p>","<table><colgroup><col style='width: 100%'></colgroup><tbody><tr><td style='vertical-align:middle;white-space:nowrap'><p><span>warning:</span>&nbsp;<span>extra qualification on member</span>&nbsp;<em>A</em></p></td></tr></tbody></table>",
67336733
"<p><a href='https://releases.llvm.org/16.0.0/tools/clang/docs/DiagnosticsReference.html#wmicrosoft-extra-qualification'>LLVM Documentation</a></p>"
67346734
]

0 commit comments

Comments
 (0)