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 |
Daniel Marjamäki
|
0cfec3c89c
|
Tokenizer::SetVarId : Fixed segmentation fault
|
2008-12-12 20:25:08 +00:00 |
Reijo Tomperi
|
2ef955eb65
|
Refactoring: Moved token creation and token deletion into TOKEN class. Added previous() (not tested yet)
|
2008-12-09 17:31:04 +00:00 |
Nicolas Le Cam
|
aaabacfe87
|
Formatting: uniformize end of lines.
|
2008-12-09 00:49:32 +00:00 |
Nicolas Le Cam
|
eb80c9786f
|
Revert revisions 627 and 628
|
2008-12-08 23:41:34 +00:00 |
Nicolas Le Cam
|
e8d2c7cfb3
|
Formatting: uniformize end of lines (part 2)
|
2008-12-08 23:10:13 +00:00 |
Nicolas Le Cam
|
625b77ec33
|
Formatting: uniformize end of lines.
|
2008-12-08 23:06:19 +00:00 |
Reijo Tomperi
|
440203bd5c
|
Refactoring: Rest of the public variables in TOKEN moved to private area.
|
2008-12-08 22:02:37 +00:00 |
Reijo Tomperi
|
51024235a3
|
Refactoring: TOKEN::next renamed to _next, getter and setter functions for it added next() and next(TOKEN*).
|
2008-12-08 21:49:05 +00:00 |
Reijo Tomperi
|
25847fdec4
|
Refactoring: TOKEN::varId was moved from public to private
|
2008-12-08 17:45:55 +00:00 |
Daniel Marjamäki
|
3619552e38
|
Variable Id : First simple implementation
|
2008-12-08 17:28:44 +00:00 |
Daniel Marjamäki
|
c907589deb
|
Fixed a bug in Tokenizer::simplifyTokenList. The keyword operator is
never used in a variable declaration
|
2008-12-07 08:47:56 +00:00 |
Daniel Marjamäki
|
93c04efc95
|
tokenize: "~Base" should generate two tokens. "~" and "Base"
|
2008-12-06 17:53:30 +00:00 |
Daniel Marjamäki
|
7196b8a028
|
Tokenizer: Remove "volatile" keyword to simplify checking
|
2008-12-06 13:10:38 +00:00 |
Daniel Marjamäki
|
f7a846e31e
|
tokenize: Replace a complicated condition with a "Match"
|
2008-12-05 19:17:25 +00:00 |
Daniel Marjamäki
|
b029163cdc
|
tokenize: Replace "aaaa" and "strcmp" with "str" and "Match"
|
2008-12-05 19:04:41 +00:00 |
Daniel Marjamäki
|
09f7c07a4d
|
tokenize: Minor refactorings
|
2008-12-05 18:25:08 +00:00 |
Reijo Tomperi
|
c958482196
|
TOKEN: Match() function improved, %any% and const|volatile kind of patterns are now accepted. Simplified comparing on tokenize.cpp.
|
2008-12-04 21:48:15 +00:00 |
Daniel Marjamäki
|
3820a26e1c
|
Tokenizer: Simplify numeric comparisons
|
2008-12-04 19:32:26 +00:00 |
Reijo Tomperi
|
5eb653911e
|
Tokenizer: Fixed bug, const and volatile functions were not recogniced
by fillFunctionList()
|
2008-12-03 20:22:48 +00:00 |
Daniel Marjamäki
|
4f4a2391e0
|
Refactoring: Removed _settings member from the Tokenizer
|
2008-11-25 18:44:35 +00:00 |
Daniel Marjamäki
|
8845e8bc89
|
Refactoring: Tokenizer - renaming functions, moved the 'tokenizeCode' to the private section
|
2008-11-25 18:34:51 +00:00 |
Daniel Marjamäki
|
0d6bd9b7fd
|
TODO: added a todo to add an error message. and removed an "invalid" todo
|
2008-11-25 18:15:32 +00:00 |
Daniel Marjamäki
|
bc267bbca5
|
TOKEN: Refactoring the 'str' member variable
|
2008-11-24 19:38:08 +00:00 |
Reijo Tomperi
|
a6ad4045d4
|
Refactoring: IsName() and IsNumber() are no longer static and they don't take a parameter.
|
2008-11-23 12:21:40 +00:00 |
Reijo Tomperi
|
29a1468523
|
Refactoring: Renamed some member variables: variable -> _variable
|
2008-11-23 11:08:07 +00:00 |
Reijo Tomperi
|
0b2e7a0ef3
|
Refactoring: at() changed to tokAt() and getstr() changed to strAt()
|
2008-11-23 10:09:16 +00:00 |
Daniel Marjamäki
|
0c9784fc0c
|
Refactoring: The Tokenizer::FillFunctionList has no use of its parameter. Enabled the CheckFunctionUsage
|
2008-11-23 06:21:44 +00:00 |
Reijo Tomperi
|
3ba83b6620
|
Refactoring: token.* files added, Some functions from Tokenizer moved under TOKEN. Renamed few functions, like gettok() -> at(), combineWithNext() and deleteNext() are also new
names for old functions. Usage was gettok( tok, 2 ), but now it is tok->at( 2 ).
|
2008-11-22 22:49:14 +00:00 |
Daniel Marjamäki
|
0d3a99adb0
|
increased constness of member variable _tokenizer in the Check* classes
|
2008-11-22 20:00:36 +00:00 |
Daniel Marjamäki
|
a60dad3562
|
CheckBufferOverrun: increased constness of _tokenizer member
|
2008-11-22 19:47:10 +00:00 |
Daniel Marjamäki
|
07b5ebe72b
|
Check Function Usage: Removed much of the old checking and made some refactoring
|
2008-11-22 19:39:12 +00:00 |
Daniel Marjamäki
|
d68e2ae966
|
tokenizer: simplifyConditions tries to simplify conditions.. those that are always true to '( true )' and those that are always false to '( false )'
|
2008-11-22 17:53:22 +00:00 |
Daniel Marjamäki
|
2db69e6072
|
tokenizer: Added DeallocateTokens to the destructor so it's not necessary to cleanup manually
|
2008-11-22 09:44:02 +00:00 |
Daniel Marjamäki
|
9ce8918895
|
tokenizer: Added functions "alwaysTrue" and "alwaysFalse" to check if a
condition is always true / false
|
2008-11-22 09:32:57 +00:00 |
Reijo Tomperi
|
125692bc65
|
Refactoring: CommonCheck.* files are removed. Rest of the global functions from there were moved to Tokenizer class
|
2008-11-21 21:14:24 +00:00 |
Reijo Tomperi
|
51e9d98a5f
|
Refactoring: Errors are no longer logged via global functions to a global stream. Instead callback function is used via interface.
ErrorLogger interface was added and taken into use.
|
2008-11-20 22:19:26 +00:00 |
Reijo Tomperi
|
180e3b99e6
|
Refactoring: Some global functions moved to Tokenizer class
|
2008-11-20 20:54:52 +00:00 |
Daniel Marjamäki
|
dd5abf2c05
|
cleanup
|
2008-11-20 19:23:05 +00:00 |
Daniel Marjamäki
|
63bc26d662
|
Function list: Remove functions with duplicate names to prevent false positives
|
2008-11-20 19:18:55 +00:00 |
Reijo Tomperi
|
eb1b0abc1e
|
Refactoring: tokens() changed to const and to return const pointer.
|
2008-11-16 16:13:38 +00:00 |
Reijo Tomperi
|
aa579911ab
|
Refactoring: Global variable tokenes is no more.
|
2008-11-16 15:58:52 +00:00 |