Skip to content

Commit 7cd6c26

Browse files
authored
Merge branch 'codeql-cli-2.16.0' into felicitymay-publish-docs
2 parents be0df92 + b2f1fbe commit 7cd6c26

File tree

4 files changed

+1
-70
lines changed

4 files changed

+1
-70
lines changed

cpp/ql/lib/semmle/code/cpp/Element.qll

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import semmle.code.cpp.Location
77
private import semmle.code.cpp.Enclosing
88
private import semmle.code.cpp.internal.ResolveClass
99
private import semmle.code.cpp.internal.ResolveGlobalVariable
10-
private import semmle.code.cpp.internal.ResolveFunction
1110

1211
/**
1312
* Get the `Element` that represents this `@element`.
@@ -31,14 +30,11 @@ pragma[inline]
3130
@element unresolveElement(Element e) {
3231
not result instanceof @usertype and
3332
not result instanceof @variable and
34-
not result instanceof @function and
3533
result = e
3634
or
3735
e = resolveClass(result)
3836
or
3937
e = resolveGlobalVariable(result)
40-
or
41-
e = resolveFunction(result)
4238
}
4339

4440
/**

cpp/ql/lib/semmle/code/cpp/Function.qll

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import semmle.code.cpp.exprs.Call
99
import semmle.code.cpp.metrics.MetricFunction
1010
import semmle.code.cpp.Linkage
1111
private import semmle.code.cpp.internal.ResolveClass
12-
private import semmle.code.cpp.internal.ResolveFunction
1312

1413
/**
1514
* A C/C++ function [N4140 8.3.5]. Both member functions and non-member
@@ -26,8 +25,6 @@ private import semmle.code.cpp.internal.ResolveFunction
2625
* in more detail in `Declaration.qll`.
2726
*/
2827
class Function extends Declaration, ControlFlowNode, AccessHolder, @function {
29-
Function() { isFunction(underlyingElement(this)) }
30-
3128
override string getName() { functions(underlyingElement(this), result, _) }
3229

3330
/**

cpp/ql/lib/semmle/code/cpp/internal/ResolveFunction.qll

Lines changed: 0 additions & 57 deletions
This file was deleted.

swift/swift-autobuilder/swift-autobuilder.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,6 @@ static bool buildSwiftPackages(const std::vector<std::filesystem::path>& swiftPa
5454
return any_successful;
5555
}
5656

57-
static void installDependencies(const CLIArgs& args) {
58-
auto structure = scanProjectStructure(args.workingDir);
59-
installDependencies(structure, args.dryRun);
60-
}
61-
6257
static bool autobuild(const CLIArgs& args) {
6358
auto structure = scanProjectStructure(args.workingDir);
6459
auto& xcodeTargets = structure.xcodeTargets;
@@ -87,6 +82,7 @@ static bool autobuild(const CLIArgs& args) {
8782
return false;
8883
} else if (!xcodeTargets.empty()) {
8984
LOG_INFO("Building Xcode target: {}", xcodeTargets.front());
85+
installDependencies(structure, args.dryRun);
9086
auto buildSucceeded = buildXcodeTarget(xcodeTargets.front(), args.dryRun);
9187
// If build failed, try to build Swift packages
9288
if (!buildSucceeded && !swiftPackages.empty()) {
@@ -117,7 +113,6 @@ static CLIArgs parseCLIArgs(int argc, char** argv) {
117113

118114
int main(int argc, char** argv) {
119115
auto args = parseCLIArgs(argc, argv);
120-
installDependencies(args);
121116
auto success = autobuild(args);
122117
codeql::Log::flush();
123118
if (!success) {

0 commit comments

Comments
 (0)