Skip to content

Commit ab6dc1d

Browse files
committed
C++: Add missing override annotations
1 parent 5d5febf commit ab6dc1d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ class Class extends UserType {
566566
* The alignment of this type in bytes (on the machine where facts were
567567
* extracted).
568568
*/
569-
int getAlignment() { usertypesize(underlyingElement(this),_,result) }
569+
override int getAlignment() { usertypesize(underlyingElement(this),_,result) }
570570

571571
/**
572572
* Holds if this class is constructed from another class as a result of

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ abstract class Container extends Locatable, @container {
162162
*
163163
* This is the absolute path of the container.
164164
*/
165-
string toString() {
165+
override string toString() {
166166
result = getAbsolutePath()
167167
}
168168
}

0 commit comments

Comments
 (0)