1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-05 08:46:02 +02:00

Merge branch 'master' into sd90

This commit is contained in:
Andrew Gvozdev 2011-07-16 14:07:19 -04:00
commit 882050ba48
3 changed files with 12 additions and 1 deletions

View file

@ -93,7 +93,7 @@ public class ReturnChecker extends AbstractAstFunctionChecker {
public int visit(IASTStatement stmt) {
if (stmt instanceof IASTReturnStatement) {
IASTReturnStatement ret = (IASTReturnStatement) stmt;
boolean hasValue = ret.getReturnValue() != null;
boolean hasValue = ret.getReturnArgument() != null;
if (hasret == false && hasValue) {
hasret = true;
}

View file

@ -289,4 +289,13 @@ public class ReturnCheckerTest extends CheckerTestCase {
loadCodeAndRunCpp(getAboveComment());
checkNoErrors();
}
// #include <vector>
// std::vector<int> f() {
// return {1,2,3};
// }
public void testReturnInitializerList() {
loadCodeAndRunCpp(getAboveComment());
checkNoErrors();
}
}

View file

@ -1311,6 +1311,8 @@ public class CModelManager implements IResourceChangeListener, IContentTypeChang
}
private void preDeleteProject(IProject project) {
// remove binary parsers
binaryParsersMap.remove(project);
// stop the binary runner for this project
removeBinaryRunner(project);
// stop indexing jobs for this project