Skip to content

Commit df91b81

Browse files
committed
C++: Deprecate StdPairClass properly.
1 parent 354f21f commit df91b81

File tree

1 file changed

+7
-1
lines changed
  • cpp/ql/src/semmle/code/cpp/models/implementations

1 file changed

+7
-1
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,16 @@ import semmle.code.cpp.models.interfaces.Taint
77
/**
88
* An instantiation of `std::pair<T1, T2>`.
99
*/
10-
class StdPair extends ClassTemplateInstantiation {
10+
private class StdPair extends ClassTemplateInstantiation {
1111
StdPair() { this.hasQualifiedName(["std", "bsl"], "pair") }
1212
}
1313

14+
/**
15+
* DEPRECATED: This is now called `StdPair` and is a private part of the
16+
* library implementation.
17+
*/
18+
deprecated class StdPairClass = StdPair;
19+
1420
/**
1521
* Any of the single-parameter constructors of `std::pair` that takes a reference to an
1622
* instantiation of `std::pair`. These constructors allow conversion between pair types when the

0 commit comments

Comments
 (0)