[prefast:Warning]: C26439 (in 'wil::details::StoredCallContextInfo::{ctor}')
Open
Nobody has claimed this yet.
code-analysis
- Dominant language
- C++
- Stars
- 3k
- Forks
- 300
- Avg merge
- 19h 12m
- Merged PRs (30d)
- 1
Description
PreFast says wil::details::StoredCallContextInfo::{ctor}' in include/wil/TraceLogging.h hit issue "This kind of function should not throw. Declare it 'noexcept' (f.6)."
The following constructor appears to be the offending code:
class StoredCallContextInfo : public wil::CallContextInfo
{
public:
...
StoredCallContextInfo(StoredCallContextInfo &&other) :
StoredCallContextInfo()
{
operator=(wistd::move(other));
}
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in include/wil/TraceLogging.h at wil::details::StoredCallContextInfo's move constructor. Run PreFast to confirm warning C26439, then verify the warning is resolved without changing the constructor's behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100