CodeQL library for C/C++
Search

Module CaptionedComments

Provides heuristics to find “todo” and “fixme” comments (in all caps).

Import path

import Documentation.CaptionedComments

Imports

cpp

Provides classes and predicates for working with C/C++ code.

Predicates

getCommentTextCaptioned

Gets a string representation of the comment c containing the caption ‘TODO’ or ‘FIXME’. If c spans multiple lines, all lines after the first are abbreviated as […].