Skip to content

Commit d1836e5

Browse files
authored
Update c26497.md
Adding an explanation that empty/stubbed out functions will not have this warning issued against them in an effort to reduce noise.
1 parent bc3284b commit d1836e5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/code-quality/c26497.md

+9
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,12 @@ void function1() noexcept
2424
const int theAnswer = GetTheAnswer(0);
2525
}
2626
```
27+
28+
To reduce noise on new code, this warning will not be issued if the function has an empty implementation.
29+
30+
```cpp
31+
int function1(){ // no C26497
32+
return 1;
33+
}
34+
void function2(){} // no C26497
35+
```

0 commit comments

Comments
 (0)