Donate Share

C and C++ Code Counter

Code

Programming Languages: C++, Java, C

License: GNU General Public License (GPL)

Repositories

browse code, statistics, last commit on 2006-04-05 svn co https://cccc.svn.sourceforge.net/svnroot/cccc cccc

Show:

What's happening?

  • Maximum stack depth not checked

    Hello, on some files, I had cccc crashing. After investigating, it appears that it occurs when stack_depth becomes greater than MAX_STACK_DEPTH. My problems were in ParseUtility::tracein at cccc_utl.cc:507, but it could occur at other places too judging by the code. At each usage to index a fixed size array, stack_depth should be checked to be < MAX_STACK_DEPTH. Patch attached...

    2009-10-16 13:48:39 UTC by nobody

  • Error on 64 bits archi when filename has no extension

    Hello, when running cccc on x86_64 archi with a filename that has no extension, it crashes. The core give the following info: (gdb) bt (...) #7 0x00007f4e0b809b93 in std::string::substr(unsigned long, unsigned long) const () from /usr/lib/libstdc++.so.6 #8 0x000000000043ec41 in CCCC_Options::getFileLanguage (filename=...) at cccc_opt.cc:229 #9 0x00000000004374b0 in Main::ParseFiles...

    2009-10-16 13:37:55 UTC by nobody

  • Followup: RE: cccc traverse sub-folders

    find . | cccc - (on Unix family platforms) or dir /b/s | cccc - (on DOS/Windows family platforms)

    2009-09-21 13:02:42 UTC by davidlpack

  • XML output: error in module_summary representation

    In XML reports, the element under is incorrectly represented as . Problem appears to be the use of the symbol LOC_NODE_NAME instead of COM_NODE_NAME in cccc_xml.cc (see attached patch).

    2009-06-04 12:10:43 UTC by endef

  • Parsing errors with Java 5

    Generics and annotations are not recognized, syntax errors are generated by the parser and afterwards measurements are calculated wrongly.

    2009-05-27 06:58:29 UTC by sozgur

  • Space character in directory name

    The cccc command cannot be parsed properly if the directory names include space characters.

    2009-05-27 06:43:11 UTC by sozgur

  • cccc traverse sub-folders

    What is the command to run cccc traversing sub-folders.

    2009-03-24 15:08:11 UTC by colone

  • configuring for C code

    I ran CCCC against some C code and got some unexpected results. Although there were 8 source files, the output indicated on 1 module. The module name showed to be "anonymous" instead of the file names. I'm assuming that a "module" is equivalent to a C++ class, which it found none. Is there a way to configure the tool to be more C friendly? Thanks in advance.

    2009-01-20 23:44:17 UTC by jwilson-2

  • cccc hangs on AlphaMacros.h from openjdk-7-ea-src-b39-06_nov

    Command line utility cccc (version 3.1.4, x86, Gentoo Linux) hangs.

    2008-11-11 20:54:53 UTC by maximdementiev

  • Wide-character constant support

    Attempted to initialize a std::wstring variable in an initializer list: FooClass::FooClass() : wString(L"") { } It chokes at the L".

    2007-10-25 00:25:24 UTC by techno5le

Our Numbers