NDEVR
API Documentation
CodeStatistics.h
1#pragma once
2#include <NDEVR/File.h>
3#include <NDEVR/Scanner.h>
4#include <NDEVR/InfoPipe.h>
5#include <NDEVR/LogMessage.h>
6namespace NDEVR
7{
36}
Scans source files and collects statistics such as line counts, class counts, comment density,...
void collectStatistics()
Scans the entire source tree and accumulates all statistics.
String include_source_name
The subdirectory name for source files.
File source_code_directory
The root source directory to scan.
File output_location
The directory for statistics output.
uint04 comment_count
Total number of comment lines found.
String include_folder_name
The subdirectory name for header files.
uint04 max_indentation
Maximum indentation level encountered.
uint04 template_count
Total number of template declarations found.
uint04 class_count
Total number of class declarations found.
uint04 line_count
Total number of lines scanned.
LogPtr log
Log for status messages.
void collectInformation(const File &header_file)
Collects statistics from a single source file.
uint04 execution_line_count
Total number of executable lines.
uint04 empty_space_count
Total number of empty or whitespace-only lines.
uint04 tab_count
Total number of tab characters found.
File max_indentation_file
The file containing the maximum indentation.
uint04 space_count
Total number of leading space characters found.
uint04 assert_count
Total number of assert statements found.
Logic for reading or writing to a file as well as navigating filesystems or other common file operati...
Definition File.h:53
A light-weight wrapper that will be a no-op if there is not a valid log reference,...
The core String class for the NDEVR API.
Definition String.h:95
The primary namespace for the NDEVR SDK.
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...