Skip to content

Commit 275a96e

Browse files
Copilot feedback
1 parent e7f6e7c commit 275a96e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

cpp/common/src/codingstandards/cpp/ast/HiddenFriend.qll

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ private class ClassCandidate extends Class {
8282
*/
8383
Declaration getNextOrphanedDeclaration() {
8484
result =
85-
min(OrphanedDeclaration decl, int startLine, int startColumn | // Location locDecl | // Location locLast, Location locDecl |
85+
min(OrphanedDeclaration decl, int startLine, int startColumn |
8686
orphanHasLocation(decl, this.getFile(), startLine, startColumn) and
8787
startLine > getLastLineOfClassDeclaration(this)
8888
|
@@ -109,11 +109,11 @@ private class ClassCandidate extends Class {
109109
*/
110110
pragma[nomagic]
111111
private predicate orphanHasLocation(
112-
OrphanedDeclaration orphan, FileCandidate file, int endLine, int endColumn
112+
OrphanedDeclaration orphan, FileCandidate file, int startLine, int startColumn
113113
) {
114114
orphan.getFile() = file and
115-
orphan.getLocation().getEndLine() = endLine and
116-
orphan.getLocation().getEndColumn() = endColumn
115+
orphan.getLocation().getEndLine() = startLine and
116+
orphan.getLocation().getEndColumn() = startColumn
117117
}
118118

119119
/**

cpp/misra/test/rules/RULE-0-2-3/templates.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ namespace use_as_template_parameter_type {
8686
} // namespace use_as_template_parameter_type
8787

8888
/**
89-
* Test case 6: A type that is used as the default value of a non-type template
89+
* Test case 7: A type that is used as the default value of a non-type template
9090
* parameter
9191
*/
9292
namespace use_as_template_parameter_default_value {

0 commit comments

Comments
 (0)