CodeQL library for C/C++
Search

Member predicate CommentBlock::isCommentedOutCode

Holds if this comment block looks like code that has been commented out. Specifically:

  1. It does not look like documentation (see isDocumentation).
  2. It is not in a header file without any declaration entries or top level declarations.
  3. More than half of the lines in the comment block look like code.
predicate isCommentedOutCode()