Skip to content

Commit 3fad597

Browse files
committed
C++: Make function models private (except ones we anticipate users accessing).
1 parent 4ce4185 commit 3fad597

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • cpp/ql/src/semmle/code/cpp/models/implementations

cpp/ql/src/semmle/code/cpp/models/implementations/StdPair.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import semmle.code.cpp.models.interfaces.Taint
77
/**
88
* Additional model for `std::pair` constructors.
99
*/
10-
class StdPairConstructor extends Constructor, TaintFunction {
10+
private class StdPairConstructor extends Constructor, TaintFunction {
1111
StdPairConstructor() { this.hasQualifiedName("std", "pair", "pair") }
1212

1313
/**
@@ -34,7 +34,7 @@ class StdPairConstructor extends Constructor, TaintFunction {
3434
/**
3535
* The standard pair `swap` function.
3636
*/
37-
class StdPairSwap extends TaintFunction {
37+
private class StdPairSwap extends TaintFunction {
3838
StdPairSwap() { this.hasQualifiedName("std", "pair", "swap") }
3939

4040
override predicate hasTaintFlow(FunctionInput input, FunctionOutput output) {

0 commit comments

Comments
 (0)