scitools.com

← Metric catalog

Header Files is one of the source-code metrics Understand computes across 17+ languages — browse them in the GUI, export and track them, or script them with the Python API.

Header Files

API ID: CountDeclFileHeader
Languages: C++
Targets: Architectures, Project

Number of header files.

Normally a .h/.hpp file, though it's based on how the parser identifies the file, not just its extension.

For example, this directory:


test/c/
  cohesion.cpp
  csvExportBigNumbers.cpp
  friend.cpp
  io.cpp
  knots.cpp
  paths.cpp
  pond.cpp
  sample.cpp
  vehicles.cpp
  classes.cpp
  class_macro.h

has 1 header file, class_macro.h, so CountDeclFileHeader = 1.

See Code Files for the complementary count, and Files for the total across all languages.

Targets By Language: Configuration: