Name

pdbcomment — Scans all (non-system) source files related to a PDB file for C, C++, Fortran comments, C/C++ pragmas, and Fortran directives and prints out a new enhanced PDB file containing this additional information.

Synopsis

pdbcomment [ -o <outfile> ] [ -c ] [ -p ] [ -d ] [ -v ] [ -D string ]

Description

Scans all (non-system) source files related to a PDB file for C, C++, Fortran comments, C/C++ pragmas, and Fortran directives and prints out a new enhanced PDB file containing this additional information.

Options

-o <outfile> Write output to file <outfile>

-c Only scan for comments (ignore pragmas)

-p Only scan for pragmas (ignore comments)

-d Fortran only: Consider lines with a 'D' in the first column also as comments.

-v Verbose mode

-D string Fortran only: Scan also for directives which are marked with the sentinel 'string'. This option can be specified several times, once for each directive sentinel to scan for. Case does NOT matter when specifiying 'string'. pdbcomment recognizes OpenMP (sentinel $omp) by default.

Example

% pdbcomment test.pdb
<PDB 3.0>
lang c++

so#1 testApp.cc
scom co#0 c so#1 1 1 so#1 3 2 /*\n      class T\n*/
scom co#1 c++ so#1 8 3 so#1 8 19 // create float.