https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119324

--- Comment #4 from Robert Dubner <rdubner at gcc dot gnu.org> ---
I fear that my ignorance is holed up in a bit of a fortress.

I have installed Cppcheck 2.7 on an Ubuntu 22.04 LTS x86_64 system.

When I try to run it on just one file that you mention, I get the following.  I
haven't a clue how to interpret it, or to make it more meaningful.  Part of my
problem is that the cppcheck documentation indicates that things known as
"configurations" are of major importance, without giving me anything like a
clue what a "configuration" is.


$ cppcheck genapi.cc --force --enable=all
Checking genapi.cc ...
genutil.h:104:1: error: There is an unknown macro here somewhere. Configuration
is required. If FIXED_WIDE_INT is a macro then please configure it.
[unknownMacro]
FIXED_WIDE_INT(128) get_power_of_ten(int n);
^
Checking genapi.cc: INCORPORATE_ANALYZER...
Checking genapi.cc: LINE_TICK...
Checking genapi.cc: YDFLTYPE;YDFLTYPE_IS_DECLARED...
cbldiag.h:82:0: information: Skipping configuration
'YYLTYPE;YYLTYPE_IS_DECLARED' since the value of 'YYLTYPE' is unknown. Use -D
if you want to check it. You can use -U to skip it explicitly.
[ConfigurationNotChecked]
void error_msg( const YYLTYPE& loc, const char gmsgid[], ... );
^
cbldiag.h:84:0: information: Skipping configuration
'YYLTYPE;YYLTYPE_IS_DECLARED' since the value of 'YYLTYPE' is unknown. Use -D
if you want to check it. You can use -U to skip it explicitly.
[ConfigurationNotChecked]
void dialect_error( const YYLTYPE& loc, const char term[], const char dialect[]
);
^
cbldiag.h:93:0: information: Skipping configuration
'YYLTYPE;YYLTYPE_IS_DECLARED' since the value of 'YYLTYPE' is unknown. Use -D
if you want to check it. You can use -U to skip it explicitly.
[ConfigurationNotChecked]
void cbl_unimplemented_at( const  YYLTYPE& loc, const char *gmsgid, ... );
^
cbldiag.h:102:0: information: Skipping configuration
'YYLTYPE;YYLTYPE_IS_DECLARED' since the value of 'YYLTYPE' is unknown. Use -D
if you want to check it. You can use -U to skip it explicitly.
[ConfigurationNotChecked]
void gcc_location_set( const YYLTYPE& loc );
^
symbols.h:156:0: information: Skipping configuration
'YYLTYPE;YYLTYPE_IS_DECLARED' since the value of 'YYLTYPE' is unknown. Use -D
if you want to check it. You can use -U to skip it explicitly.
[ConfigurationNotChecked]
const char * consistent_encoding_check( const YYLTYPE& loc, const char input[]
);
^
symbols.h:167:0: information: Skipping configuration
'YYLTYPE;YYLTYPE_IS_DECLARED' since the value of 'YYLTYPE' is unknown. Use -D
if you want to check it. You can use -U to skip it explicitly.
[ConfigurationNotChecked]
  cbl_domain_elem_t( const YYLTYPE& loc,
^
symbols.h:187:0: information: Skipping configuration
'YYLTYPE;YYLTYPE_IS_DECLARED' since the value of 'YYLTYPE' is unknown. Use -D
if you want to check it. You can use -U to skip it explicitly.
[ConfigurationNotChecked]
  cbl_domain_t( const YYLTYPE& loc,
^
symbols.h:575:0: information: Skipping configuration
'YYLTYPE;YYLTYPE_IS_DECLARED' since the value of 'YYLTYPE' is unknown. Use -D
if you want to check it. You can use -U to skip it explicitly.
[ConfigurationNotChecked]
  void report_invalid_initial_value(const YYLTYPE& loc) const;
^
symbols.h:654:0: information: Skipping configuration
'YYLTYPE;YYLTYPE_IS_DECLARED' since the value of 'YYLTYPE' is unknown. Use -D
if you want to check it. You can use -U to skip it explicitly.
[ConfigurationNotChecked]
  YYLTYPE loc;
^
symbols.h:672:0: information: Skipping configuration
'YYLTYPE;YYLTYPE_IS_DECLARED' since the value of 'YYLTYPE' is unknown. Use -D
if you want to check it. You can use -U to skip it explicitly.
[ConfigurationNotChecked]
  cbl_refer_t( const YYLTYPE& loc, cbl_field_t *field, bool all = false )
^
symbols.h:1371:0: information: Skipping configuration
'YYLTYPE;YYLTYPE_IS_DECLARED' since the value of 'YYLTYPE' is unknown. Use -D
if you want to check it. You can use -U to skip it explicitly.
[ConfigurationNotChecked]
  YYLTYPE loc;
^
symbols.h:1387:0: information: Skipping configuration
'YYLTYPE;YYLTYPE_IS_DECLARED' since the value of 'YYLTYPE' is unknown. Use -D
if you want to check it. You can use -U to skip it explicitly.
[ConfigurationNotChecked]
  cbl_alphabet_t(const YYLTYPE& loc, cbl_encoding_t enc)
^
symbols.h:1398:0: information: Skipping configuration
'YYLTYPE;YYLTYPE_IS_DECLARED' since the value of 'YYLTYPE' is unknown. Use -D
if you want to check it. You can use -U to skip it explicitly.
[ConfigurationNotChecked]
  cbl_alphabet_t( const YYLTYPE& loc, const cbl_name_t name,
^
symbols.h:1419:0: information: Skipping configuration
'YYLTYPE;YYLTYPE_IS_DECLARED' since the value of 'YYLTYPE' is unknown. Use -D
if you want to check it. You can use -U to skip it explicitly.
[ConfigurationNotChecked]
  add_sequence( const YYLTYPE& loc, const unsigned char seq[] ) {
^
symbols.h:1430:0: information: Skipping configuration
'YYLTYPE;YYLTYPE_IS_DECLARED' since the value of 'YYLTYPE' is unknown. Use -D
if you want to check it. You can use -U to skip it explicitly.
[ConfigurationNotChecked]
  add_interval( const YYLTYPE& loc, unsigned char low, unsigned char high ) {
^
symbols.h:1440:0: information: Skipping configuration
'YYLTYPE;YYLTYPE_IS_DECLARED' since the value of 'YYLTYPE' is unknown. Use -D
if you want to check it. You can use -U to skip it explicitly.
[ConfigurationNotChecked]
  void also( const YYLTYPE& loc, size_t ch );
^
symbols.h:1441:0: information: Skipping configuration
'YYLTYPE;YYLTYPE_IS_DECLARED' since the value of 'YYLTYPE' is unknown. Use -D
if you want to check it. You can use -U to skip it explicitly.
[ConfigurationNotChecked]
  bool assign( const YYLTYPE& loc, unsigned char ch, unsigned char value );
^
symbols.h:2121:0: information: Skipping configuration
'YYLTYPE;YYLTYPE_IS_DECLARED' since the value of 'YYLTYPE' is unknown. Use -D
if you want to check it. You can use -U to skip it explicitly.
[ConfigurationNotChecked]
  YYLTYPE loc;
^
symbols.h:2125:0: information: Skipping configuration
'YYLTYPE;YYLTYPE_IS_DECLARED' since the value of 'YYLTYPE' is unknown. Use -D
if you want to check it. You can use -U to skip it explicitly.
[ConfigurationNotChecked]
  cbl_nameloc_t( const YYLTYPE& loc, const char *name )
^
symbols.h:2158:0: information: Skipping configuration
'YYLTYPE;YYLTYPE_IS_DECLARED' since the value of 'YYLTYPE' is unknown. Use -D
if you want to check it. You can use -U to skip it explicitly.
[ConfigurationNotChecked]
  size_t push( const YYLTYPE& loc, const char name[] ) {
^
symbols.h:2164:0: information: Skipping configuration
'YYLTYPE;YYLTYPE_IS_DECLARED' since the value of 'YYLTYPE' is unknown. Use -D
if you want to check it. You can use -U to skip it explicitly.
[ConfigurationNotChecked]
  void qualify( const YYLTYPE& loc, const char name[] ) {
^
symbols.h:2198:0: information: Skipping configuration
'YYLTYPE;YYLTYPE_IS_DECLARED' since the value of 'YYLTYPE' is unknown. Use -D
if you want to check it. You can use -U to skip it explicitly.
[ConfigurationNotChecked]
void tee_up_name( const YYLTYPE& loc, const char name[] );
^
symbols.h:2271:0: information: Skipping configuration
'YYLTYPE;YYLTYPE_IS_DECLARED' since the value of 'YYLTYPE' is unknown. Use -D
if you want to check it. You can use -U to skip it explicitly.
[ConfigurationNotChecked]
void symbol_field_location( size_t ifield, const YYLTYPE& loc );
^
symbols.h:2272:0: information: Skipping configuration
'YYLTYPE;YYLTYPE_IS_DECLARED' since the value of 'YYLTYPE' is unknown. Use -D
if you want to check it. You can use -U to skip it explicitly.
[ConfigurationNotChecked]
YYLTYPE symbol_field_location( size_t ifield );
^
Checking genapi.cc: YYLTYPE;YYLTYPE_IS_DECLARED...
Checking genapi.cc: _CBLDIAG_H...
Checking genapi.cc: _SYMBOLS_H_...
Checking genapi.cc: condition_lists...
Checking genapi.cc: yy_flex_debug...
nofile:0:0: information: Cppcheck cannot find all the include files (use
--check-config for details) [missingInclude]

Reply via email to