BloombergLP::bsls::ReviewViolation::ReviewViolation

Create a ReviewViolation with the specified attributes.

Synopsis

Declared in <bsls_review.h>

constexpr
ReviewViolation(
    char const* comment,
    char const* fileName,
    int lineNumber,
    char const* reviewLevel,
    int count);

Description

Create a ReviewViolation with the specified comment, fileName, lineNumber, reviewLevel, and count. Note that the supplied reviewLevel will usually be one of the k_LEVEL constants defined in bsls::Review (or see bsls::Assert for the levels that will be passed for assertions that are being reviewed).

Parameters

NameDescription
commentexpression text associated with the violation
fileNamename of the file where the violation occurred
lineNumberline number where the violation occurred
reviewLevellevel string identifying the review macro
countnumber of times this violation has already occurred