Daniel Marjamäki
|
f79b06b5a0
|
tokenize : Removed unneeded variable
|
2009-01-04 07:14:46 +00:00 |
Reijo Tomperi
|
1594f453cc
|
Refactoring: Changed order of parameters in Match() and findMatch() (deprecated parameter moved to last)
|
2009-01-03 21:05:47 +00:00 |
Reijo Tomperi
|
5d1d267624
|
Refactoring: Rename class "TOKEN" to "Token"
|
2009-01-03 20:29:20 +00:00 |
Reijo Tomperi
|
f099796a10
|
Copyright 2007-2008 -> 2007-2009
|
2009-01-02 19:02:35 +00:00 |
Reijo Tomperi
|
94923cca1a
|
Refactoring: Prefer ++i; over i++;
|
2009-01-01 22:22:28 +00:00 |
Daniel Marjamäki
|
9a3696cb6f
|
TOKEN: Renamed TOKEN::setstr to TOKEN::str
|
2009-01-01 09:37:07 +00:00 |
Daniel Marjamäki
|
8ba739a99a
|
Tokenizer::setVarId : Minor bug fix
|
2008-12-28 10:13:41 +00:00 |
Reijo Tomperi
|
7a9a43390e
|
Optimizing setVarId()
|
2008-12-27 20:48:42 +00:00 |
Reijo Tomperi
|
b9494c8081
|
removeReduntantConditions() can now handle if( true ) else if () conditions also.
|
2008-12-26 12:55:53 +00:00 |
Daniel Marjamäki
|
586b28b063
|
refactoring : Removed unread variable 'staticfunc'
|
2008-12-25 20:09:32 +00:00 |
Daniel Marjamäki
|
709e2a4277
|
TOKEN::Match : Removed the parameter varnames2 because it's unused and deprecated
|
2008-12-25 18:27:49 +00:00 |
Reijo Tomperi
|
2692866694
|
Cleanup to removeReduntantConditions()
|
2008-12-24 15:43:05 +00:00 |
Reijo Tomperi
|
05e23b7606
|
Minor improvement to removeReduntantConditions()
|
2008-12-24 08:33:15 +00:00 |
Daniel Marjamäki
|
36f39aec22
|
tokenize : optimising "simplifyConditions"
|
2008-12-24 07:55:12 +00:00 |
Daniel Marjamäki
|
a65a66bee0
|
Tokenizer::setVarId : small optimisations
|
2008-12-24 07:46:57 +00:00 |
Daniel Marjamäki
|
d24913caf8
|
tokenize : small optimisations. Use simpleMatch and direct std::string comparisons instead of Match
|
2008-12-23 20:42:44 +00:00 |
Daniel Marjamäki
|
44b459a98c
|
simplifyKnownVariables : optimisation
|
2008-12-23 19:39:06 +00:00 |
Daniel Marjamäki
|
5a91a2ea12
|
simplifyIfAddBraces : Further fixes so that braces will be added to an "else" statement too
|
2008-12-23 08:11:33 +00:00 |
Daniel Marjamäki
|
7fda68c662
|
simplifyIfAddBraces : Added check to cppcheck as it seems to work pretty good now
|
2008-12-22 20:49:56 +00:00 |
Daniel Marjamäki
|
c3b9b3dfd5
|
simplifyIfAddBraces : Fixed a segmentation fault
|
2008-12-22 19:26:23 +00:00 |
Daniel Marjamäki
|
78f46c5848
|
simplifyIfAddBraces : Fixed minor bug that caused the closing brace to be put on the wrong place
|
2008-12-22 18:32:04 +00:00 |
Daniel Marjamäki
|
30c86f7107
|
simplifyIfAddBraces : Fixed segmentation fault
|
2008-12-22 18:00:54 +00:00 |
Daniel Marjamäki
|
a69ebc6664
|
Tokenizer : Added function 'simplifyIfAddBraces'
|
2008-12-22 09:20:46 +00:00 |
Reijo Tomperi
|
85e6ab5226
|
More improvement to removeReduntantConditions() and few tests for it also
|
2008-12-21 21:04:58 +00:00 |
Reijo Tomperi
|
496b09a377
|
Remove reduntant if sentences that are never executed.
|
2008-12-21 19:24:21 +00:00 |
Nicolas Le Cam
|
615095fca2
|
Optimization: Speed up typedef simplification.
|
2008-12-21 18:26:06 +00:00 |
Nicolas Le Cam
|
1c281662da
|
Fix signed/unsigned warning (thanks Aggro)
|
2008-12-21 17:51:07 +00:00 |
Nicolas Le Cam
|
1f68dfa57e
|
Refactoring: strdup also exists in MSVS
|
2008-12-21 17:45:05 +00:00 |
Nicolas Le Cam
|
1f141e4dc0
|
Opimization: Remove combineWithNext Member, use an array instead
|
2008-12-21 17:35:33 +00:00 |
Reijo Tomperi
|
bb198aed5e
|
Fixed bug, varid was not assigned properly when bool use = false; was splitted into two statements in simplify code.
|
2008-12-21 14:27:07 +00:00 |
Reijo Tomperi
|
b7db651ee2
|
Improving simplifyKnownVariables() to simplify bool variables used inside if() like int values are simplified.
|
2008-12-21 13:58:56 +00:00 |
Nicolas Le Cam
|
cbf9067de0
|
Minor optimizations and fixes
|
2008-12-21 11:43:05 +00:00 |
Daniel Marjamäki
|
d44523144a
|
simplifyKnownVariables: fixed a segmentation fault
|
2008-12-21 09:12:00 +00:00 |
Reijo Tomperi
|
e272630604
|
Copyright and app name changed in each file
|
2008-12-19 21:15:06 +00:00 |
Nicolas Le Cam
|
a5fa323a0b
|
Formatting: uniformize end of lines.
|
2008-12-18 21:28:57 +00:00 |
Daniel Marjamäki
|
c56779c9ae
|
variable id : set variable ids for struct members
|
2008-12-18 18:56:25 +00:00 |
Daniel Marjamäki
|
69137597f5
|
tokenizer : using the simplifyKnownVariables
|
2008-12-18 07:19:35 +00:00 |
Daniel Marjamäki
|
dd853f0d59
|
token : fixed so that TOKEN::_previous is updated when deleting tokens
|
2008-12-17 19:20:11 +00:00 |
Nicolas Le Cam
|
883282ba16
|
Fix compilation
|
2008-12-14 23:06:37 +00:00 |
Nicolas Le Cam
|
24c978d5d2
|
Formatting: uniformize end of lines.
|
2008-12-14 22:03:49 +00:00 |
Reijo Tomperi
|
3851c0f019
|
Refactoring: Renamed all files to lower case. Also added testfilelister.cpp which was forgotted from previous commit.
|
2008-12-14 20:49:55 +00:00 |
Reijo Tomperi
|
a15381dcbe
|
Fixed bug, paths like "/path/../index.h" created duplicate warnings with files like "/index.h". Relative paths are now simplified to
look a like. Test cases added.
|
2008-12-14 19:03:34 +00:00 |
Nicolas Le Cam
|
fec777057d
|
Formatting: uniformize end of lines.
|
2008-12-14 17:05:21 +00:00 |
Nicolas Le Cam
|
81185af7f9
|
Add the last c++ cast operator
|
2008-12-14 16:35:51 +00:00 |
Daniel Marjamäki
|
6269c3cbbd
|
tokenizer : updated simplifyKnownVariables
|
2008-12-13 20:22:45 +00:00 |
Reijo Tomperi
|
538f259911
|
Started making simplifyKnownVariables(), but it is very much unfinished. Two test cases added for it.
|
2008-12-13 19:44:56 +00:00 |
Reijo Tomperi
|
02d6e367e7
|
Refactoring, simplifyConditions(), simplifyCasts() and simplifyFunctionReturn() now return the opposite of their boolean return value.
|
2008-12-13 18:54:48 +00:00 |
Daniel Marjamäki
|
1e9863d671
|
Tokenizer : Simplify function calls for functions that only returns a constant value
|
2008-12-13 17:57:36 +00:00 |
Daniel Marjamäki
|
3a1196e5f9
|
Tokenizer : Added function for simplifying casts
|
2008-12-13 16:42:39 +00:00 |
Nicolas Le Cam
|
661068bcd4
|
Formatting: uniformize end of lines.
|
2008-12-13 11:39:36 +00:00 |