-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
cccc
blocks forever when analyzing some file:
$ cccc build_dir/target-mips_24kc_musl/busybox-default/busybox-1.33.1/libbb/lineedit.c
build_dir/target-mips_24kc_musl/busybox-default/busybox-1.33.1/libbb/lineedit.c
CCCC - a code counter for C and C++
===================================
A program to analyse C and C++ source code and report on
some simple software metrics
Version 3.1.4
Copyright Tim Littlefair, 1995, 1996, 1997, 1998, 1999, 2000
with contributions from Bill McLean, Herman Hueni, Lynn Wilson
Peter Bell, Thomas Hieber and Kenneth H. Cox.
The development of this program was heavily dependent on
the Purdue Compiler Construction Tool Set (PCCTS)
by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung,
Tom Moog and others.
CCCC comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions. See the file COPYING in the source
code distribution for details.
Parsing
Processing build_dir/target-mips_24kc_musl/busybox-default/busybox-1.33.1/libbb/lineedit.c as C/C++ (c.ansi)
build_dir/target-mips_24kc_musl/busybox-default/busybox-1.33.1/libbb/lineedit.c(138): syntax error at token ALIGN1
build_dir/target-mips_24kc_musl/busybox-default/busybox-1.33.1/libbb/lineedit.c(138): trying to match brack_list at 'ALIGN1'
build_dir/target-mips_24kc_musl/busybox-default/busybox-1.33.1/libbb/lineedit.c(194): syntax error at token *
build_dir/target-mips_24kc_musl/busybox-default/busybox-1.33.1/libbb/lineedit.c(194): trying to match class_prefix at 'struct'
failed opt_const_modifier for token 73 static
build_dir/target-mips_24kc_musl/busybox-default/busybox-1.33.1/libbb/lineedit.c(321): syntax error at token static
build_dir/target-mips_24kc_musl/busybox-default/busybox-1.33.1/libbb/lineedit.c(321): trying to match opt_const_modifier at 'static'
failed opt_const_modifier for token 73 static
build_dir/target-mips_24kc_musl/busybox-default/busybox-1.33.1/libbb/lineedit.c(579): syntax error at token static
build_dir/target-mips_24kc_musl/busybox-default/busybox-1.33.1/libbb/lineedit.c(579): trying to match opt_const_modifier at 'static'
Unrecognized section from NOINLINE on line 715 to } on line 733
=====ignored section begins=====
...}
===== ignored section ends =====
Syntax error: parser failed to handle NOINLINE unsigned complete_username ......} on lines 715 to 733
build_dir/target-mips_24kc_musl/busybox-default/busybox-1.33.1/libbb/lineedit.c(715): syntax error at token NOINLINE
build_dir/target-mips_24kc_musl/busybox-default/busybox-1.33.1/libbb/lineedit.c(715): trying to match definition_or_declaration at 'NOINLINE'
Unrecognized section from NOINLINE on line 792 to } on line 916
=====ignored section begins=====
...}
===== ignored section ends =====
Syntax error: parser failed to handle NOINLINE unsigned complete_cmd_dir_file ......} on lines 792 to 916
build_dir/target-mips_24kc_musl/busybox-default/busybox-1.33.1/libbb/lineedit.c(792): syntax error at token NOINLINE
build_dir/target-mips_24kc_musl/busybox-default/busybox-1.33.1/libbb/lineedit.c(792): trying to match definition_or_declaration at 'NOINLINE
I'm on Debian Sid, cccc installed from the official package.
The file is from an OpenWRT build tree, here is the content: https://pastebin.com/raw/uEiFntMc
Metadata
Metadata
Assignees
Labels
No labels