1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-30 21:55:31 +02:00
Find a file
Andrew Eidsness 8883fb1af5 Bug 402177: Btree.insert returns wrong value
The javadoc for BTree.insert says "don't insert if the key was already
there, in which case we return the record that matched".

However, the implementation was returning the new record even when it
was not actually inserted.

This is a fix for the problem and a test case to demonstrate the issue.

Further Changes:
----------------
I have modified the code style as described in the comments in
https://git.eclipse.org/r/#/c/10804.

However, I'm still not sure what style is expected.  I've looked through
the CDT wiki a few times, especially the 'new developer' parts, but
haven't found anything relevant.  When I asked the question a few weeks
ago, the only reply was to use the "eclipse built-in style", which I
can't find in my preferences.  The default seems to be "K&R Style" (that
is what it is set to now, and I don't think that I would have changed
it), so that is what I've used here.

If I've missed the section in the wiki then a pointer would be greatly
appreciated.  Otherwise this topic would be a great topic for someone
that knows the answers to add to the wiki.

Change-Id: If079f235871fcdfbd35f1cba3f64cc3e33edaaec
Reviewed-on: https://git.eclipse.org/r/10804
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
IP-Clean: Doug Schaefer <dschaefer@qnx.com>
Tested-by: Doug Schaefer <dschaefer@qnx.com>
2013-03-12 12:24:05 -04:00
build bug 357442: A bit more of tidy EnvironmentVariableManagerToolChain 2013-03-11 12:29:22 -04:00
codan Enabled assertions during tests. 2013-02-05 10:07:41 -08:00
core Bug 402177: Btree.insert returns wrong value 2013-03-12 12:24:05 -04:00
cross Bug 391390 : Updatesite url is indigo 2012-10-17 14:18:01 -04:00
debug Bug 396230 - [breakpoints] In Breakpoint Properties dialog sort and group pages. 2013-02-08 13:32:00 -08:00
doc Bug 402071: Update Run menu docs 2013-03-07 22:47:21 -05:00
dsf Bug 400152 - Add org.eclipse.debug.core and org.eclipse.resources.core imports 2013-02-13 11:40:25 -08:00
dsf-gdb Bug 378834 - Add Debug JUnit tests to Hudson 2013-03-08 15:48:09 -05:00
jtag Bug 391390 : Updatesite url is indigo 2012-10-17 14:18:01 -04:00
launch/org.eclipse.cdt.launch Bug 384780 - No error is reported if a directory is specified as program 2012-07-10 16:20:56 -04:00
llvm Add llvm to the build. 2013-03-03 23:48:27 -05:00
lrparser Bug 389009 - Enumerator with dependent value 2013-02-05 13:09:29 -05:00
memory Bug 398329 : MemoryBrowser - switching between debuggees does not update the provider for browser operations like Import and Export 2013-01-21 17:25:10 -05:00
p2 Bumped up feature versions for Kepler. 2012-06-28 11:08:11 -07:00
qt Recognize Q_SIGNAL and Q_SLOT on single functions 2013-02-28 18:19:59 -05:00
releng Add llvm to the build. 2013-03-03 23:48:27 -05:00
testsrunner Bug 391390 : Updatesite url is indigo 2012-10-17 14:18:01 -04:00
upc Fixed compilation errors. 2012-12-28 14:08:36 -08:00
util Bug 391390 : Updatesite url is indigo 2012-10-17 14:18:01 -04:00
visualizer Bug 396268 - [Visualizer] Add CPU/core load information to the multicore 2013-02-28 11:05:22 -05:00
windows Bug 397121 - Add support for Windows SDK 8.0 and Visual C++ 11.0 2013-01-03 00:49:38 -05:00
xlc bug 398681: CDT does not understand some of xlC diagnostic messages 2013-01-21 17:33:29 -05:00
.gitignore Ignore NFS-created files. 2012-11-08 13:34:54 -08:00
pom.xml Make download location pluggable. 2013-03-04 00:13:07 -05:00