fbrereto
fbrereto

Reputation: 35925

What function annotation flags are available for Coverity Scan?

The Coverity Scan tuning documentation talks about adding function annotations to source files. There are three options listed:

However, from that same page there is a link to an example file that uses as-of-yet unseen flags:

What do these flags mean? What other flags are available for function annotation, and where are they documented?

Upvotes: 0

Views: 2637

Answers (1)

fbrereto
fbrereto

Reputation: 35925

Apparently the content between the brackets should be the Coverity event tag name. The comment should immediately precede the line with the false positive in it, and will cause that defect to be flagged as intentional (as long as it matches the flagged event.)

For example, the toctou event tag name is detailed here.

Source

Upvotes: 1

Related Questions