Skip to content

Commit 0029a33

Browse files
committed
CPP: Deprecate Interface and remove the test.
1 parent 49f6ac7 commit 0029a33

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

cpp/ql/src/semmle/code/cpp/Class.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1116,8 +1116,9 @@ class PartialClassTemplateSpecialization extends ClassTemplateSpecialization {
11161116
* };
11171117
* ```
11181118
*
1119+
* DEPRECATED: This class is considered to be too specific for general usage.
11191120
*/
1120-
class Interface extends Class {
1121+
deprecated class Interface extends Class {
11211122
Interface() {
11221123
forex(Declaration m | m.getDeclaringType() = this.getABaseClass*() and not compgenerated(unresolveElement(m)) | m instanceof PureVirtualFunction)
11231124
}

cpp/ql/test/library-tests/virtual_functions/virtual_functions/interfaces.expected

Lines changed: 0 additions & 1 deletion
This file was deleted.

cpp/ql/test/library-tests/virtual_functions/virtual_functions/interfaces.ql

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

0 commit comments

Comments
 (0)