Skip to content

Commit 2fe9ff3

Browse files
MathiasVPCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent fcfdf81 commit 2fe9ff3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • cpp/ql/test/query-tests/Likely Bugs/Leap Year/UnsafeArrayForDaysOfYear

cpp/ql/test/query-tests/Likely Bugs/Leap Year/UnsafeArrayForDaysOfYear/test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ void VectorOfDays_FalsePositive(int dayOfYear, int x)
7171

7272
void f_______________________________________________________this_name_must_be_exactly_357_chars__________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________() {
7373
// Using this magic compiler variable results in a `const char` array being
74-
// initialized with the function name which (including `void`, a space,
75-
// and `()`). in this case, this adds up to exactly 364 characters.
74+
// initialized with the function signature. Including `void`, a space, and
75+
// `()`, the signature adds up to exactly 364 characters in this case.
7676
// The initializer for `__PRETTY_FUNCTION__` thus initializes an array of
7777
// length 365 (because the null-terminator adds another character).
7878
auto x = __PRETTY_FUNCTION__; // clean

0 commit comments

Comments
 (0)