Module PreprocBlock
This library offers a view of preprocessor branches (#if
, #ifdef
,
#ifndef
, #elif
and #else
) as blocks of code between the opening and
closing directives, with navigable parent-child relationships to other
blocks. The main class is PreprocessorBlock
.
Import path
import semmle.code.cpp.headers.PreprocBlock
Imports
cpp | Provides classes and predicates for working with C/C++ code. |
Classes
PreprocessorBlock | A chunk of code from one preprocessor branch ( |