1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00
Commit graph

23523 commits

Author SHA1 Message Date
Alena Laskavaia
10cb69009a removed mandatory sleeps to speed-up tests
Change-Id: Id55eb28cc5f98ccfaff9ab88eb6fff87352519d2
2015-02-19 08:32:01 -05:00
Sergey Prigogin
b2f459e075 Bug 460183 - Template resolution problem with trailing-return-type
function in index

Change-Id: I87d1ef78b064d187b4dd204ce1e040b98418808b
2015-02-18 23:26:11 -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
Sergey Prigogin
340b507e38 Cosmetics. 2015-02-18 15:28:36 -08: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
Marc Khouzam
3edc86361c Add cdt-e4.5.target file
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-02-18 16:27:49 -05:00
Marc Khouzam
78cd08f40d Allow for filtering of findbugs
Choose version 2.5.2 which is what is supported by CDT's HIPP.  Note that by removing the version altogether, the latest available findBugs would be selected.  However, this could lead to different results between manual builds and HIPP builds, which is why I thought it would be better to specify the version explicitly.

FindBugs can be run by adding the string

 findbugs:findbugs

as a maven parameter, either in a local maven build, or on HIPP.

Add releng/findbugs-exclude.xml to control the errors shown by FindBugs.
The content of that file was copied from the TM project, but should
eventually be ajusted for CDT.

Change-Id: Ibc8348b9286f00580a4079a7ca3c669708bc6194
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-02-18 11:50:43 -05:00
Simon Marchi
059db21d52 debug tests: Fix error in SyncUtil.fillMemory doc
Change-Id: I7b1ab19b52a9c080c569a95e9ea11cbd45d987cb
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
2015-02-18 11:35:37 -05:00
Simon Marchi
5ad1f5c4c3 debug tests: MIMemoryTest: Use runToLocation when possible
Change-Id: I66f76039cecf5333826be1b75556437a059c71b9
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
2015-02-18 11:35:36 -05:00
Simon Marchi
544dbb5af8 [debug tests] Remove superfluous breakpoint tag
There is a superfluous LINE_MAIN_BEFORE_THREAD_START that is causing
problems, remove it.

Change-Id: I57c4637ada0b5efda2848029e5216a13cf638067
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
2015-02-18 11:34:54 -05:00
Doug Schaefer
7fdd6f6e90 Fix up API @since tags against CDT 8.6.
Change-Id: I31966aa0dc312bb7ba77b6ce91eecd01ad4891ce
2015-02-17 23:43:49 -05:00
Simon Marchi
9ed8f75f74 Change word_size to wordSize
... to respect the coding style.

Change-Id: Ie68422182afad2532ce9238665bb06576fc3cc18
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
2015-02-17 20:37:37 -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
Doug Schaefer
cd65a29016 Bug 459972 - Update CDT to use o.e.remote 2.0.
Requires a couple of changes in the autotools plug-ins. Change the
4.5 target to refer to the remote 2.0 build and update the pom to
use the 4.5 target.

Also fixes autotools test so they run on the Mac.

Change-Id: I145de3ea3f14d61ffba7354ad0fa3e0ec2467e26
2015-02-17 14:48:08 -05:00
Vladimir Prus
9471bc7bc1 Extract MIExpressions.getBasicType.
This permits derived classes to reimplement the logic for getting
expression value without copy-pasting the logic for getting type.

Change-Id: I21b048afaee8433d17e873b7aaf4f7b118edd107
2015-02-17 12:13:17 -05:00
Marc Dumais
ae9445c5ae Bug 460015 - [visualizer] Make VisualizerThread "m_locInfo" field
protected instead of private

Change-Id: Idd6faafa39fae849839072a96dc8296ebd27652c
2015-02-17 08:31:48 -05:00
Alvaro Sanchez-Leon
ef889c26f9 Bug 459901 - [visualizer] The visualizer may display duplicate elements
Change-Id: I9fb3fb8f85ec51afde48a665e275c6080b9b9bab
2015-02-17 08:31:11 -05:00
Sergey Prigogin
7e3a37be7b Revert "Revert "Bug 459940 - Sfinae in id-expression""
This reverts commit a3147f85b0.

The regression manifests itself only during indexing but doesn't produce unresolved symbols in C++ editor. Restoring the original change since the regression is relatively benign. Will continue to investigate.

Change-Id: I1fdfb4c31a0d5c08c3bc88baaf11d36c708cd883
2015-02-16 21:41:45 -05:00
Sergey Prigogin
a3147f85b0 Revert "Bug 459940 - Sfinae in id-expression"
This reverts commit 5e2c5d8491.

The change caused few regressions on my code base. Investigating.

Change-Id: I765b1fb5e730387ec3e91d4ecdfdb8c06db3e45e
2015-02-16 20:36:17 -05:00
Alvaro Sanchez-Leon
384e9759c4 Bug 459114 - [visualizer] Make it possible to override the construction of the data model
Change-Id: Ib2af550136fa3ca638fd970e3c2e40ddf597ba80
2015-02-16 13:44:26 -05:00
Doug Schaefer
275feb6874 Bug 459971 New SerialPort support. First step is Mac library.
Java classes are defined and a pretty simple native library for
Mac is there. Tested with Arduino so I know reading works. This
implementation should work for Linux as well. Windows is going to
be the hard one.

Not checking in the binaries yet until I get more testing with them.

Also remove ppc native libraries for Mac since that hasn't been
supported in a long time.

Change-Id: If4ffbc6e73a7656a47c2f45b875be0842c482b05
2015-02-16 13:19:54 -05:00
Sergey Prigogin
52c80c124e Bug 402498. Do not rely on promiscuous binding resolution for adding
includes.

Change-Id: Idace39cc9ff9b781bf0de2d0017533548fb69e83
2015-02-16 01:54:30 -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
Nathan Ridge
a662bcc921 Bug 448764 - Type of EvalMemberAccess for dependent member
Change-Id: I011ceca370e584e802354f935cc9ce004641f8f1
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
2015-02-16 01:44:56 -05:00
Nathan Ridge
5e2c5d8491 Bug 459940 - Sfinae in id-expression
Change-Id: I6cfaf2af680c3b41571d4714f9a5511ff81af42b
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
2015-02-13 22:42:41 -05:00
Marc Khouzam
04f7079574 Remove dead code
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-02-13 16:20:47 -05:00
Marc Khouzam
59e43f8253 Close resources
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-02-13 16:18:44 -05:00
Marc Khouzam
002e422dac Remove unused private method
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-02-13 16:14:09 -05:00
Marc Khouzam
ae2b10f980 Parametrize type
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-02-13 16:12:45 -05:00
Marc Khouzam
cba4006e97 Remove unnecessary SuppressWarnings
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-02-13 16:09:37 -05:00
Nathan Ridge
145728cd74 Bug 459844 - Pack expansion in nested template
Change-Id: I0f206c2b056f0e9ba388cb9f8e78ea331616a61f
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
2015-02-13 03:00:45 -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 Khouzam
0e041e8e86 Bug 459688 - Label in breakpoint thread filter dialog should match debug
view 

Change-Id: I3d74c3316f5acbf2b6aadc0b6e99e7081384f401
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-02-11 11:17:47 -05:00
Nathan Ridge
7f377190a8 Bug 452416 - Adjust a comment about PDOM versioning
Change-Id: Ia3b20bdcb3bd82ba742ad9a1a36092a658d30238
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
2015-02-10 04:11:27 -05:00
Nathan Ridge
6a87e3014d Bug 452416 - Handle variadic functions in variable read/write analysis
Change-Id: Ib28574d3cdc14fc380e6ceb8b2ba4a240b2316c6
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
2015-02-09 16:44:06 -05:00
Nathan Ridge
fd11d42d89 Bug 452416 - Move takesVarArgs() up from ICPPFunctionType to
IFunctionType

Change-Id: Ifd0cf6c4ca026587f2bbccfbc3d7f849c95b92de
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
2015-02-09 16:44:05 -05:00
Nathan Ridge
34c84eba3c Bug 459279 - Size of string literals with escape characters
Change-Id: I5fa96ce722db657d5ff4a3557d3add04e991ab88
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
2015-02-09 00:11:40 -05:00
Nathan Ridge
f7cf56f4c5 Bug 458316 - Unqualified function call with dependent argument and
non-matching overload in scope at point of declaration

Change-Id: I2fc42e9ef9258c3c56791001217572fdd08f5025
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
2015-02-09 00:13:41 -05:00
Nathan Ridge
327709c58e Bug 457770 - Size of empty structure
Change-Id: Id6f02228968986090867b2053c7815e594a404c1
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
2015-02-08 23:23:18 -05:00
Michi
8a896c57ed Bug 459389 - [code assist] no members for deeply nested class templates
Change-Id: Ia6b3461325a9c489d10dd1356d46e7e6b6ee61f0
Signed-off-by: Michi <woskimi@yahoo.de>
2015-02-08 14:38:04 -05:00
Nathan Ridge
23938e2b3d Bug 445177 - Fix an over-eager optimization that can discard a desired
alternative in TemplateIdStrategy

Change-Id: Ia82460e5e3a3420cbb13f7abd698f0173336b123
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
2015-02-08 03:48:14 -05:00
Marc Khouzam
2c1113c590 Bug 456959 - Disable test for versions of GDB that don't support it
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-02-07 19:33:34 -05:00
Sergey Prigogin
3cbb643870 Bug 459186. Added safeguards against misuse of content assist contexts 2015-02-06 15:25:09 -08:00
Sergey Prigogin
eaabc8eb34 Cosmetics. 2015-02-06 14:20:50 -08:00
Sergey Prigogin
9d2804b6a0 Bug 459186 - Index read locks are leaking 2015-02-06 14:15:03 -08:00
Sergey Prigogin
3042d38e0d Revert "Bug 438549. Add mechanism for parameter guessing."
This reverts commit 69aa2d0bf0.
2015-02-06 14:12:55 -08:00
Sergey Prigogin
1b6b3f0f06 Revert "Cosmetics."
This reverts commit e98bf3e3e3.
2015-02-06 14:12:45 -08:00
Sergey Prigogin
9de6de9fd4 Revert "Bug 459186 - Index read locks are leaking"
This reverts commit dc08061cc6.
2015-02-06 14:12:02 -08:00