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

23407 commits

Author SHA1 Message Date
Marc Khouzam
7bbaa4d7b3 Avoid duplicate code in script
Change-Id: Ia40f8fd676a7e2c302f06efa4ccf9fb77dc6dfc9
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/39421
Tested-by: Hudson CI
Reviewed-by: Simon Marchi <simon.marchi@polymtl.ca>
2015-01-15 09:33:53 -05:00
Alena Laskavaia
971176c83f abstract main tab: replace auto-config checkbox with combo item
as discussed on cdt-dev I am trying to make ui look better
and more generic by replacing 
"Select configuration using 'C/C++ Application'"
checkbox with Automatic selector.
Launch delegate or subclass on main page can control and override
behaivior of this ui control

This won't break API but it will break UI if subclasses were actually
doing something with original chechbox control 
(besides not creating it).

Change-Id: I36f20bf05ff19e1fd66782e2351f18edc7d507cc
Signed-off-by: Alena Laskavaia <elaskavaia.cdt@gmail.com>
Reviewed-on: https://git.eclipse.org/r/39619
Tested-by: Hudson CI
2015-01-15 09:09:51 -05:00
Alena Laskavaia
eb5d03de5c dsf main debug tab: swapping project and binary fields
project field should be first since project selection
drives binary selection

Change-Id: I53a2832e283ac6f32876c6262ec9df1a4196bb6c
Signed-off-by: Alena Laskavaia <elaskavaia.cdt@gmail.com>
Reviewed-on: https://git.eclipse.org/r/39625
Tested-by: Hudson CI
2015-01-15 09:07:46 -05:00
Simon Marchi
d0e93b665b debug tests: Introduce line "tags" to avoid hardcoding line numbers
Hardcoding line numbers in tests make it a pain to modify the test sources.
The approach adopted in the gdb testsuite is to look for a specific string
in the source file and return the line number where it is found. I made a
similar system for the CDT debug tests.

I dubbed this system breakpoint tags, a tag being the string we look for in
the source file.

I modified the MIRunControlTest as an example, as well as GDBProcessesTest
and MIRegistersTest because they are re-using the same breakpoints.

SOURCE_PATH and EXEC_PATH were duplicated in many test cases, so I factored
them in BaseTestCase.

Change-Id: Id1e64b2064914005ab1d87e16704866aa1c8b9ec
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
Reviewed-on: https://git.eclipse.org/r/36872
Tested-by: Hudson CI
Reviewed-by: Elena Laskavaia <elaskavaia.cdt@gmail.com>
2015-01-15 08:44:42 -05:00
Marc Khouzam
c0590c67c1 Use tycho-extras-version when needed
Change-Id: I9cf0347304e3ab42402a7c83594afa9feeb31d4d
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-01-14 15:41:45 -05:00
Marc-Andre Laperle
3af32a349a Add SourceReferences to plugins
This allows the user to clone and checkout the source code of CDT
without knowing where the repository is. See:
https://wiki.eclipse.org/PDE/UI/SourceReferences

One use case is to right-click on a plug-in under the Plug-in dependencies in
Package Explorer view and select Import from Repository. Note that for this
EGit needs to be installed.

What this patch does is to let Tycho generate the source references in the
MANIFEST.MF of the built jars. So to test this patch, one can build the update
site locally and inspect the manifests of the (non-source) jars.

Change-Id: I807cd7842e3485ae1affcaa03ae08bdbb1677c97
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/39549
Tested-by: Hudson CI
Reviewed-by: Alvaro Sanchez-Leon <alvsan09@gmail.com>
Tested-by: Alvaro Sanchez-Leon <alvsan09@gmail.com>
2015-01-14 09:41:10 -05:00
Marc Khouzam
6e6c6aa9ec Bug 445128 - Copy processing-instruction in xsl processing
Change-Id: I92282ff1e9f9ba8b1de245298d5bd0db401ca479
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/39536
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2015-01-13 20:19:38 -05:00
Sergey Prigogin
3fa103dbf8 Bug 457374 - A 'using' declaration confuses Organize Includes 2015-01-13 12:07:47 -08:00
Marc Khouzam
16886a1f2a Bug 445128 - Enable the use of p2 mirrors for CDT releases
Note that <repo-path> will need to be changed at release time to point
to the release location, which will probably be "tools/cdt/releases/8.6"

Change-Id: I0a89c8807a435ac348f4f28f2442d27668248cfc
Reviewed-on: https://git.eclipse.org/r/33992
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-by: Marc Khouzam <marc.khouzam@ericsson.com>
Tested-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-01-13 15:04:13 -05:00
Sergey Prigogin
49997a17b3 Bug 457301 - Organize Includes ignores IWYU pragma: keep 2015-01-12 18:37:19 -08:00
Simon Marchi
6a7b37ca6a Add script to download and build multiple versions of gdb automatically
This script can be used to download and build automatically multiple
versions of gdb, which is necessary when working on the CDT debug tests.

Change-Id: Ibf9ddac4efe8f80f480ae2bc9702b722bdc97192
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
Reviewed-on: https://git.eclipse.org/r/38737
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-by: Marc Khouzam <marc.khouzam@ericsson.com>
Tested-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-01-12 15:25:09 -05:00
Piotr Aniola
13ed63ea3a Bug 423342 - MinGW builds fail with custom EFS
Signed-off-by: Piotr Aniola <piotr.aniola@pl.ibm.com>
Change-Id: I9aafac7355350d076a197159c8ba4f4d05812eeb
Reviewed-on: https://git.eclipse.org/r/19442
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2015-01-12 15:03:10 -05:00
Simon Marchi
79c6c7d775 debug tests: Add test for thread name
This patch adds SyncUtil.getThreadData to make it easy to get the thread
data from the gdb thread number.

Change-Id: I948a8b87cc3afa64f3d73de23d4ace12ef4c0c1a
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
Reviewed-on: https://git.eclipse.org/r/36870
Reviewed-by: Alvaro Sanchez-Leon <alvsan09@gmail.com>
Tested-by: Alvaro Sanchez-Leon <alvsan09@gmail.com>
2015-01-12 09:36:04 -05:00
Andrew Gvozdev
daa20f98b4 Bug 453398: NPE in SupplierBasedCdtVariableSubstitutor ("Expand
env.variable refs")

Change-Id: I4ff9f5191ac5ffe5e5b34b8aba7758aa4965b213
Signed-off-by: Andrew Gvozdev <angvoz.dev@gmail.com>
Reviewed-on: https://git.eclipse.org/r/39047
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
Tested-by: Hudson CI
2015-01-09 16:53:29 -05:00
Sergey Prigogin
765d9bf16e Cosmetics. 2015-01-08 17:27:50 -08:00
Sergey Prigogin
dfacdf9d40 Code cleanup. 2015-01-08 16:33:32 -08:00
Sergey Prigogin
f0e6a286fb Added a test for renaming a source root folder. 2015-01-08 16:14:20 -08:00
Sergey Prigogin
a44b1c9ba8 Fixed a typo. 2015-01-08 16:14:19 -08:00
Sergey Prigogin
2dbdd831ec Cosmetics. 2015-01-08 16:14:17 -08:00
Sergey Prigogin
07997cb72a Fixed deprecation warnings. 2015-01-08 16:14:15 -08:00
Sergey Prigogin
d59648bf52 Cosmetics. 2015-01-08 16:14:13 -08:00
Sergey Prigogin
32cdeab66b Bug 455571 - Unable to rename C/C++ project if project has excluded
source folder entry
2015-01-08 16:14:10 -08:00
Sergey Prigogin
509d7cd337 Cosmetics. 2015-01-08 16:14:09 -08:00
Andrew Gvozdev
4a2b680255 Bug 449604: Comment/Uncomment for C++ editor not documented correctly 2015-01-08 08:59:11 -05:00
Andrew Gvozdev
322e0de5ca Bug 449605: Comment Code Aids doesn't refer to correct location for
Templates
2015-01-08 08:58:55 -05:00
Andrew Gvozdev
105fa978e7 Bug 449596: Hello World tutorial shows non-existing command to build 2015-01-08 08:58:39 -05:00
Marc Khouzam
bbf27fec22 Bug 455408 - Improve GDB label in the debug view
Change-Id: Iff449cd71f57ebcd9c8888f9958853323a6b7c2b
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/38679
Tested-by: Hudson CI
Reviewed-by: Mikhail Khodjaiants <mikhailkhod@googlemail.com>
2015-01-07 15:03:35 -05:00
Marc Khouzam
6a765aed3b Bug 456807 - Update Tracepoint tests to handle both 32bit and 64bit
architectures

Change-Id: I4325fadfec95efc263b72db8dbe446de31154169
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/39006
2015-01-07 14:54:33 -05:00
Marc Khouzam
c0ea87636e Bug 456738 - TraceFile tests cause failures
Change-Id: Ida45dbe1ba4d37f3bc0e668c30c05f616d585c55
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/39013
Tested-by: Hudson CI
Reviewed-by: Mikhail Khodjaiants <mikhailkhod@googlemail.com>
2015-01-07 14:52:32 -05:00
Michi
d6a510ab06 Bug 456752 - [Code Assist] - Accessibility check is broken for base
class templates of a class template

There are 2 changes. Finding the proper naming scope, which basically is
the same as what is done in CPPUnknownTypeScope.getBindings when
retrieving the bindings themselves.
The second change was picking the right scope for the actual
accessibility check for base templates.

Change-Id: I535c8cdd9d07272d37da9d23a03edb9e6b1b3a7a
Signed-off-by: Michi <woskimi@yahoo.de>
Reviewed-on: https://git.eclipse.org/r/39016
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2015-01-07 12:54:23 -05:00
Simon Marchi
0f94c4a067 debug tests: Add thread compatibility layer and use it
Having a compatibility layer for threading operations, like the one we
have for sleep, will allow removing a lot of platform dependent code in
the test sources, therefore simplifying the tests themselves.

I changed MultiThread.cc and MultiThreadRunControl.cc as examples, but
there are other tests files that could benefit from it.

I also changed MultiThread.cc to remove all the synchronization based on
sleeps. It now works using thread barriers, which should make the tests
less prone to random failure (although I don't think these ones were
particularly flaky) and run faster (since we don't wait for nothing).

The fallouts of that change on the Java part of the tests are taken care
of as well.

Change-Id: I7be86a5727877638c0ff0a489d263ee6bbe84764
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
Reviewed-on: https://git.eclipse.org/r/36814
Reviewed-by: Marc Khouzam <marc.khouzam@ericsson.com>
Tested-by: Hudson CI
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2015-01-07 12:36:59 -05:00
Marc Khouzam
eb66a8a2ee Bug 456942 - [junit] GDB does not report thread names in remote mode
Change-Id: I9ad3eefa715326ce6cc15f384cb13bbfd410f8db
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/39142
2015-01-07 11:30:25 -05:00
Marc Khouzam
5beb56ed69 Bug 455094 - StepIntoSelection cleanup after review
Change-Id: Id591e5c46ed86744b92c0931079fc798e39498ed
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/38177
2015-01-07 11:01:56 -05:00
Sergey Prigogin
0498b96805 Bug 449391 - Include guard name style 2015-01-06 21:03:55 -08:00
Sergey Prigogin
693185186e Cosmetics. 2015-01-06 21:02:42 -08:00
Sergey Prigogin
ce73d736bd Fixed an NPE. 2015-01-06 16:41:30 -08:00
Sergey Prigogin
91d2fb6a4b Removed unused messages. 2015-01-06 16:41:28 -08:00
Sergey Prigogin
504a9e864a Suppressed a usage warning. 2015-01-06 16:41:27 -08:00
Sergey Prigogin
90703c8f55 Cosmetics. 2015-01-06 16:41:25 -08: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
Sergey Prigogin
39c8cf14fd Fixed include guard adjustment when renaming a project. 2015-01-06 15:40:33 -08:00
Sergey Prigogin
4efe6e815e Cosmetics. 2015-01-06 15:38:52 -08:00
Alena Laskavaia
5626442f0e Added API to construct Addr64 from long
Change-Id: Iccb489f290711d806d499cfa763a06dab4e61f4d
Signed-off-by: Alena Laskavaia <elaskavaia.cdt@gmail.com>
Reviewed-on: https://git.eclipse.org/r/38496
Tested-by: Hudson CI
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
2015-01-06 09:46:31 -05:00
Sergey Prigogin
bcc3aad840 Bug 456099. Added a test for NameComposer.createByExample method. 2015-01-05 19:09:44 -08:00
Sergey Prigogin
75900af3ae Improved "Expand Selection To Enclosing Element" command for template
definitions.
2015-01-05 19:08:39 -08:00
Sergey Prigogin
5d6e09d1cb Cosmetics. 2015-01-05 18:58:03 -08:00
Sergey Prigogin
52f60a00ba Added a test for string concatenation with macro. 2015-01-05 16:02:33 -08:00
Sergey Prigogin
3637dd4923 Cosmetics. 2015-01-05 16:02:31 -08:00
Simon Marchi
4af00a316e MIRegistersTest: use more specific assert functions
Using more specific assert functions (e.g. assertEquals(a, b) rather than
assertTrue(a.equals(b)) helps a bit to make the test more readable. It can
also improve the display in the JUnit view, by showing expected and actual
values.

Also, there is no need to manually catch an exception and fail the test. If
an exception is thrown, the test will fail automatically.

Change-Id: I333cfd0d0ade41463dc773ab02e14df4b063a22f
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
Reviewed-on: https://git.eclipse.org/r/38617
Reviewed-by: Alvaro Sanchez-Leon <alvsan09@gmail.com>
Tested-by: Alvaro Sanchez-Leon <alvsan09@gmail.com>
2015-01-05 17:01:22 -05:00
Michi
bb17286834 Bug 422401 - [Content Assist] no binding for nested types of a base
class

The problem was with template base classes as in the unit test.
Accessibility check did not find the proper AccessContext.namingClass
and always ended further up in the class tree.

Change-Id: I447567cabd20ad5c57c05a9ffa5f0f12c5321ccf
Signed-off-by: Michi <woskimi@yahoo.de>
Reviewed-on: https://git.eclipse.org/r/38944
Tested-by: Hudson CI
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2015-01-04 19:58:05 -05:00