CodeQL library for C/C++
Search

Member predicate MetricFunction::getCommentRatio

Gets the ratio of lines of comments to total lines in this function (between 0.0 and 1.0).

float getCommentRatio()