mirror of
https://github.com/github/codeql.git
synced 2026-05-02 20:25:13 +02:00
C++: Make function models private (except ones we anticipate users accessing).
This commit is contained in:
@@ -7,7 +7,7 @@ import semmle.code.cpp.models.interfaces.Taint
|
||||
/**
|
||||
* Additional model for `std::pair` constructors.
|
||||
*/
|
||||
class StdPairConstructor extends Constructor, TaintFunction {
|
||||
private class StdPairConstructor extends Constructor, TaintFunction {
|
||||
StdPairConstructor() { this.hasQualifiedName("std", "pair", "pair") }
|
||||
|
||||
/**
|
||||
@@ -34,7 +34,7 @@ class StdPairConstructor extends Constructor, TaintFunction {
|
||||
/**
|
||||
* The standard pair `swap` function.
|
||||
*/
|
||||
class StdPairSwap extends TaintFunction {
|
||||
private class StdPairSwap extends TaintFunction {
|
||||
StdPairSwap() { this.hasQualifiedName("std", "pair", "swap") }
|
||||
|
||||
override predicate hasTaintFlow(FunctionInput input, FunctionOutput output) {
|
||||
|
||||
Reference in New Issue
Block a user