Alena Laskavaia
082dae21c3
codan - deprecating IProblemProfileChangeListener
...
deprecated IProblemProfileChangeListener in favor of eclipse preference
event listener mechanism
Change-Id: Ie89999f3baeed56a4c13f3ba70a92b59213ae43f
2016-01-11 21:47:57 -05:00
Alena Laskavaia
d310621847
Fixed codan example for pref change listener
...
Change-Id: I8693a4bdfd14a05ca077ec3357f82a2358bee07d
2016-01-11 21:47:56 -05:00
Alena Laskavaia
05daa126a0
Bug 383576 - Ability to ignore codan errors using line comments
...
Change-Id: I806e1787fb6cc3be8865cee1d397d581ae4acd8e
Signed-off-by: Alena Laskavaia <elaskavaia.cdt@gmail.com>
2016-01-11 12:49:09 -05:00
Alena Laskavaia
1b0fe3a41e
Removed deprecated method in codan.core, bumped version to 4.0
...
Change-Id: I1290d5388b30bd6b48663652d50f4718164b979d
2016-01-08 07:51:04 -05:00
Alena Laskavaia
aa4f014a3a
fixing some comments
...
Change-Id: I020815ce6099d743067974a97b8b63539e408f15
2016-01-07 20:49:41 -05:00
Alena Laskavaia
d3e933501e
Bug 411579 - Add a "Create new class" Quick fix.
...
Change-Id: I57dc46f079357de7d5c281d016a25baa3f2154a6
2016-01-07 20:35:31 -05:00
Marc Khouzam
f3ff649041
Fix copyright of all CDT plugins using the copyright tool from platform.
...
This commit does not add missing copyrights, just updates the date on
the existing ones.
Change-Id: I646f5afd533a1fcc539bdf2e0686b22f406ecf65
2016-01-03 20:38:31 -05:00
Nathan Ridge
b0d66aa777
Fix an "unsafe method call" error.
...
Change-Id: I174b14358cdf4252dfb5293c4b86ecfe873fb845
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
2015-12-29 15:13:24 -05:00
Nathan Ridge
59de5c303f
Bug 484619 - Make sure ProblemBindingChecker reports unresolved
...
user-defined literal operators
Change-Id: Idbb157c33b3aae06a00a10f7e7836e96db9f9b63
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
2015-12-23 23:30:15 -05:00
Alena Laskavaia
5218c3caf9
cleanup of ControlFlowGraph view
...
Change-Id: Ic6be0eedc1e66867efda2b437181da081b2234c0
2015-12-18 07:59:19 -05:00
Nathan Ridge
5cd555717b
Bug 479638 - Cache the result of EvalBinding.isConstantExpression()
...
This helps avoid infinite recursion when a variable's initializer
references itself.
Change-Id: I4667536ebbefd2008afe9003617092a0a5693db0
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
2015-11-29 17:48:21 -05:00
Marc Khouzam
0cfb15135f
Remove reference to java environment in build.properties
...
Change-Id: I053158a23d2783879248320a84a9549e28cfb4d1
2015-09-29 08:57:47 -04:00
Alena Laskavaia
a288931a1b
Bug 471967: preference page does not show up - invalid values
...
Change-Id: I01f0ff56dd76ded66e5b22f53130e5d865440384
Signed-off-by: Alena Laskavaia <elaskavaia.cdt@gmail.com>
2015-08-24 12:57:29 -04:00
Marc Khouzam
bb61124897
Incremented CDT feature version to 8.8.0
...
Change-Id: Ib1189a08a5f0225fd676b682dc8a10477ad3acc5
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-06-10 09:33:49 -04:00
Marc Khouzam
e820f872ad
Incremented CDT feature version to 8.7.0
...
Change-Id: Ife0feaaa9263d2b7797e31d628250bd26caff1b5
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-05-04 21:07:13 -04:00
Sergey Prigogin
711ec8df95
Bug 461538 - "noreturn" attribute in destructor is not accounted for
...
Change-Id: Ia3c3bdfdb26ff18092fd20be02f178ebb71848bb
Signed-off-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2015-04-06 17:35:03 -04:00
Sergey Prigogin
94aa97e0b6
Cosmetics.
...
Change-Id: I473deba48684e751905fbfa487df6fe9146781c2
Signed-off-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2015-04-03 12:05:27 -07:00
Sergey Prigogin
bec85475fd
Reverted erroneous commits.
...
Change-Id: I7e914e27413f102d4b84c62f53f300c4ec5d23e8
Signed-off-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2015-04-03 13:37:47 -04:00
Sergey Prigogin
4d1b8a8e26
Cosmetics
2015-04-02 20:41:39 -07:00
Marc Khouzam
37890019cb
Remove warnings caused by change to getAdaptable()
...
getAdaptable() in 4.5 M6 has changed to use generics, making casting its
result no longer necessary.
Change-Id: Idd943216a925576bb72c784b2c5a2a4b8e8b00d2
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-03-25 11:01:46 -04:00
Alena Laskavaia
535f49a7db
codan: added filter field in the problem configuration page
...
tree is getting very big. Added tree filter.
Change-Id: I49a0b059c794486178b2ba35bbe42b6131c34888
2015-03-23 15:47:04 -04:00
Alena Laskavaia
50775fe2fb
codan: encapsulated builder and added vm var to disable (for tests)
...
- refactored the code so client who run codan always go though builder
to call checkers
- added vm arg -Dcodan.disabled=true to be used mostly by junit to not
run codan at all
Change-Id: Ie85e20f23b6ded8fffe5064adc1f9193a6f9a146
2015-03-18 21:03:03 -04:00
Nathan Ridge
d755ace3cc
Bug 352407 - Change CharOperation.pathMatch() to take CharSequence's
...
instead of char arrays
Change-Id: Ic3cd197c6bafb1ad6d71ad7e3edcf076e844c58b
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
2015-03-09 10:35:03 -04:00
Nathan Ridge
5d2f7bcb56
Bug 352407 - Correctly compare resource path to pattern in codan
...
exclusion filter
Change-Id: Ic7f9740fa129bb5e05a6156f077af8a8c0d36e7b
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
2015-03-08 14:36:13 -04:00
Sergey Prigogin
ad308251da
Code streamlining.
2015-03-07 23:58:05 -08:00
Sergey Prigogin
7020c95a8b
Cosmetics.
2015-03-07 23:45:29 -08:00
Alena Laskavaia
acbd1e14f8
codan: example of CElement checker - external invoke
...
Change-Id: I0b88fb611372ffdbcceda3d0588c9fb65486cb03
Signed-off-by: Alena Laskavaia <elaskavaia.cdt@gmail.com>
2015-03-06 15:38:59 -05:00
Alena Laskavaia
dd528c19b6
codan: added AbstractCElementChecker class
...
this allows to run on translation unit but without index locking
useful for externl tools
Change-Id: If0788eee7d322aa4cafb7985e0c8f742c31369ae
Signed-off-by: Alena Laskavaia <elaskavaia.cdt@gmail.com>
2015-03-06 15:38:44 -05:00
Alena Laskavaia
7ecd20efa9
codan: refactored external tool invoke to be more useful
...
Change-Id: Ide621e5541febe8fda784605ef4d5e23476669d4
Signed-off-by: Alena Laskavaia <elaskavaia.cdt@gmail.com>
2015-03-05 15:18:31 -05:00
Alena Laskavaia
82274d4060
added codan marker generator
...
its required for some cdt classes like console parsers
Change-Id: Ibde68774656a15c735dce08d5f3041dc56a7266f
Signed-off-by: Alena Laskavaia <elaskavaia.cdt@gmail.com>
2015-03-05 09:19:54 -05:00
Alena Laskavaia
0966863ef7
updated codan examples
...
Change-Id: I30bf2da294ec613917ce0f836f61709b1af9b513
Signed-off-by: Alena Laskavaia <elaskavaia.cdt@gmail.com>
2015-03-04 14:28:26 -05:00
Alena Laskavaia
a1b9cc4fbd
codan - tracing options for printing checker stats
...
Change-Id: Ia0d1be6fc6be6092ae4b1dac84dff24fb722b1d5
2015-03-04 14:27:39 -05:00
Alena Laskavaia
498bfb6509
converted codan test to use comment labels positioning
...
Change-Id: Ib389c90a8b10abac46399248f435428e27b6975b
2015-03-03 19:36:51 -05:00
Alena Laskavaia
de3c23df86
adjusted message for comment checker
...
Change-Id: I68e6bf14340e38c7c623b444870596ab917c0b40
2015-02-27 20:17:57 -05:00
Alena Laskavaia
396b946015
codan - checker for comments
...
implement few code style rules for comments
- no line comments (sometimes enforced)
- no nested comments (no /* in block comment)
Change-Id: Ib4042a8ffab0dc1c5effd7b77ab6d2f51a1e6cae
2015-02-25 20:19:39 -05:00
Alena Laskavaia
8968b8f2ca
codan - code cleanup
...
Change-Id: I25f1047b9b07388adeeab38ba7679ac3109280fb
2015-02-22 22:06:50 -05:00
Alena Laskavaia
32d1a28f49
codan tests - removed sleeps and made sure it runs in non-ui thread
...
Change-Id: Ic684e647ea43968c7da35e0f9448e01e66c06e8f
2015-02-21 22:07:10 -05:00
Alena Laskavaia
2fca26b8e5
codan tests - make use of comment tags in tests
...
Change-Id: I822ea36bfa49164b43954ae80bc9fd223ae8d0f6
2015-02-21 22:06:56 -05:00
Nathan Ridge
80c624f2c3
Bug 455828 - Don't be over-eager when collecting dead nodes in the
...
control flow graph
Change-Id: I54013e31a197c02698e3161f9f52755e4cb6b203
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
2015-02-20 09:30:19 -05:00
Nathan Ridge
43097ce04e
Bug 455828 - Proper handling of 'switch' without explicit default
...
(including empty switch)
Change-Id: I3e20400f86c5e4273d8b0c62ed9ac3f429a84879
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
2015-02-18 19:30:08 -05:00
Nathan Ridge
3586267e6b
Bug 455828 - Proper handling of 'break' inside compound statement in a
...
case of a switch
Change-Id: I73329a8769bc20a4fc4e017faad627e03adce9d9
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
2015-02-18 19:08:59 -05:00
Alena Laskavaia
3cf5ec86ee
Bug 327375 control flow graph regression - dead connector nodes
...
basically for the code like
if (a) return 1; else return 2;
a++; // this should be a dead code node
but we don't check connector node of "if" and don't add
it to dead nodes graph resulting it this code not being marked as dead,
which can lead to false positives or false negatives for checkers that
use that. Same apply for other control statements...
Change-Id: Iafb4b48ca960f0ffab2c0265285a31cb08eb0d11
2015-02-18 16:42:59 -05:00
Nathan Ridge
d0ef9d1d82
Bug 455828 - General cleanup in ControlFlowGraphBuilder
...
Change-Id: I46cfe23fc10bed235d091afaec8eec29dd7d62ac
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
2015-02-17 20:07:04 -05:00
Nathan Ridge
0221ee20b1
Bug 441714 - Consider spurious semicolons in CaseBreakChecker
...
Change-Id: Id4fe394164063007c45da37ae82cc730a9e726dd
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
2015-02-16 01:48:37 -05:00
Nathan Ridge
155fa65c1c
Fix a typo in org.eclipse.cdt.codan.ui.cfgview/plugin.xml
...
Change-Id: I41aeb1195e9d8b663de396883e0aa6e4f3b5c6e4
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
2015-02-16 01:45:53 -05:00
Marc Khouzam
d266f8656e
Remove unnecessary .api_filters
...
Note that
memory/org.eclipse.cdt.debug.ui.memory.traditional/.settings/.api_filters
needs to be kept because:
1- it removes warnings about implementing provisional APIs
2- that plugin sets warnings as errors, so warnings are not allowed
Change-Id: Id4bcc9cd78c4c6678ef749cfe276e5a9945efa1e
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-02-11 15:48:32 -05:00
Marc-Andre Laperle
afd11359e6
Extract test VM args to common property base.test.vmargs
...
This makes it easier to change arguments for all tests. As a side-effect,
all tests now enable assertion (-ea) and have the same max heap size, etc.
Change-Id: I0965d40ba3283efe7eacdf927f6c302ee0ab30f0
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2015-02-06 13:02:28 -05:00
Sergey Prigogin
252eaf4c0f
Incremented CDT feature version to 8.6.0.
...
Change-Id: Ic90c8e6a68d21e5b90ec3fac997da6a95a29bedf
Signed-off-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Reviewed-on: https://git.eclipse.org/r/39066
Tested-by: Hudson CI
2015-01-06 19:40:38 -05:00
Alena Laskavaia
24d2e1a4c8
Bug 447486 - codan - CCE is thrown by control flow graph builder
...
- addOutgoing cannot join JumpNode - block will be added to dead list
instead
- addjusted goto code to not use addOutgoing but using setJump directly
- corrected code that doing fake return to deal jump nodes at the end
- corrected code that marks up dead code to remove jump targets
- corrected code that calculates all nodes in the graph to take into
account dangling labels
- fixed CFG viewer to show unconnected labeled statements
Change-Id: Ie4d9e37678e3ebaae8e9f268e6f37342e14a1444
Reviewed-on: https://git.eclipse.org/r/38189
Tested-by: Hudson CI
Reviewed-by: Elena Laskavaia <elaskavaia.cdt@gmail.com>
2014-12-14 13:09:13 -05:00
Nathan Ridge
517b811599
Bug 452325 - Protect against IVariable.getInitialValue() calling itself
...
recursively along any code path
Change-Id: Idbf46ca82b431e72bf6b2598427430c37ef65cc4
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/37220
Tested-by: Hudson CI
Reviewed-by: Elena Laskavaia <elaskavaia.cdt@gmail.com>
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-12-08 13:39:24 -05:00