hiono / cppclean Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/cppclean
Automatically exported from code.google.com/p/cppclean
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:
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:
I am wondering, is this project still active. There is no source code and no
binary available.
Original issue reported on code.google.com by [email protected]
on 21 Dec 2013 at 11:54
Well, the summary tells everything.
Original issue reported on code.google.com by [email protected]
on 5 Jun 2014 at 8:16
No source code is accessible from this site. Browsing the files shows nothing
present.
Original issue reported on code.google.com by [email protected]
on 16 Jul 2012 at 5:44
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
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.