Giter Club home page Giter Club logo

cppclean's People

Contributors

googlecodeexporter avatar

Watchers

 avatar

cppclean's Issues

Got non-typedef token

What steps will reproduce the problem?

cat headers | xargs ./cppclean/headers/run.sh nonvirtual_dtors.py
....
Processing zeroc/ice/cpp/include/IceUtil/Unicode.h
Got non-typedef token in zeroc/ice/cpp/include/IceUtil/Unicode.h @ 
Token('UTFConversionException', 1060, 1082) [Token(':', 1083, 1084), 
Token('public', 1085, 1091), Token('Exception', 1092, 1101), Token('{', 1102, 
1103), Token('public', 1104, 1110), Token(':', 1110, 1111), 
Token('UTFConversionException', 1121, 1143), Token('(', 1143, 1144), 
Token('const', 1144, 1149), Token('char', 1150, 1154), Token('*', 1154, 1155), 
Token(',', 1155, 1156), Token('int', 1157, 1160), Token(',', 1160, 1161), 
Token('ConversionError', 1162, 1177), Token(')', 1177, 1178), Token(';', 1178, 
1179), Token('virtual', 1184, 1191), Token('std', 1192, 1195), Token('::', 
1195, 1197)]
What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?
r282

Please provide any additional information below.

I get lot of similar errors when try to use this tool to analyze ZeroC Ice code 
(http://www.zeroc.com/download/Ice/3.4/Ice-3.4.1.tar.gz)


Original issue reported on code.google.com by [email protected] on 12 Feb 2011 at 12:22

Attachments:

operator> causes IndexError exception

What steps will reproduce the problem?
1. have an operator> defined
2. Run find_warnings.py

What is the expected output? What do you see instead?
Parses stuff. Actually crashes, here is the error:
{{{
Processing test.h
Got exception in test.h @ Token('bool', 27, 31) []
Got exception in test.h @ Token('class', 0, 5) []
Traceback (most recent call last):
  File "/home/rich/src/cppclean-read-only/headers/cpp/find_warnings.py",
line 495, in <module>
    main(sys.argv)
  File "/home/rich/src/cppclean-read-only/headers/cpp/find_warnings.py",
line 488, in main
    entire_ast = list(filter(None, builder.Generate()))
  File "/home/rich/src/cppclean-read-only/headers/cpp/ast.py", line 719, in
Generate
    result = self._GenerateOne(token)
  File "/home/rich/src/cppclean-read-only/headers/cpp/ast.py", line 742, in
_GenerateOne
    return method()
  File "/home/rich/src/cppclean-read-only/headers/cpp/ast.py", line 1445,
in handle_class
    return self._GetClass(Class, VISIBILITY_PRIVATE, None)
  File "/home/rich/src/cppclean-read-only/headers/cpp/ast.py", line 1521,
in _GetClass
    body = list(ast.Generate())
  File "/home/rich/src/cppclean-read-only/headers/cpp/ast.py", line 719, in
Generate
    result = self._GenerateOne(token)
  File "/home/rich/src/cppclean-read-only/headers/cpp/ast.py", line 804, in
_GenerateOne
    return self._GetMethod(temp_tokens, 0, None, False)
  File "/home/rich/src/cppclean-read-only/headers/cpp/ast.py", line 976, in
_GetMethod
    while return_type_and_name[index].name != '<':
IndexError: list index out of range
}}}

What version of the product are you using? On what operating system?
svn version, r279

Please provide any additional information below.
Attached a minimal example.

Original issue reported on code.google.com by richard.quirk on 27 Dec 2008 at 8:30

Attachments:

Unneeded-internal-declaration for variable that is used.

What steps will reproduce the problem?
In some code if you have an internal variable that is used for a default 
argument, cppclean says it's not needed.  E.g.:

static const char foo[] = "blablabla";

void f(const char * cstr = foo){}

int main()
{  
  f();
  return 0;
}

What is the expected output? What do you see instead?
I expect cppclean to have no problems with this.  Instead it says:
clean_test.C:1: unused variable 'foo'

What version of the product are you using? On what operating system?
I am using cppclean 0.2.5, on Mac OSX 10.9.5.

Please provide any additional information below.
clang++ with -Wextra (but not with just -Wall) also complains that the variable 
is not needed.
It's possible I'm misunderstanding what the warning is trying to tell me.  I am 
interpreting "not needed" as "you could delete this line and it wouldn't break 
anything".  Clearly removing that line does break the code (I even tried it 
with clang++ just to be sure).


Original issue reported on code.google.com by [email protected] on 12 Nov 2014 at 11:27

not able to find the CppClean source

What steps will reproduce the problem?
hg clone created an empty repository. Source Browser shows nothing ?

Is cppclean project deleted/moved somewhere else ?


Original issue reported on code.google.com by [email protected] on 6 Dec 2012 at 2:38

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.