CodeQL library for C/C++
codeql/cpp-all 0.4.4 (changelog, source)
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()