Skip to content

Commit 9536e50

Browse files
copilot feedback
1 parent 81cbd29 commit 9536e50

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

cpp/common/src/codingstandards/cpp/types/Predicate.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ private import semmle.code.cpp.dataflow.new.DataFlow
1818
*
1919
* To be more widely useful, we match more flexibly on the name, as `_Compare` is also common, etc.
2020
*
21-
* To get a particular `Type` that is _used_ as a predicate type, see `getASubstitutedType()`,
22-
* rather than the type parameter itself, see `getASubstitutedType()`.
21+
* To get a particular `Type` that is _used_ as a predicate type, rather than the type parameter
22+
* itself, see `getASubstitutedType()`.
2323
*/
2424
class PredicateType extends TypeTemplateParameter {
2525
PredicateType() {

cpp/common/src/codingstandards/cpp/types/Templates.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ private newtype TSubstitution =
1010
* `TemplateClass`, `TemplateFunction`, or `TemplateVariable`, which complicates their usage.
1111
*
1212
* A `Substitution` in particular refers to an instantiation of that template of some kind, and
13-
* allows analysis of which parameters were substituted with which types in that instatiation.
13+
* allows analysis of which parameters were substituted with which types in that instantiation.
1414
*/
1515
class Substitution extends TSubstitution {
1616
ClassTemplateInstantiation asClassSubstitution() { this = TClassSubstitution(result) }
@@ -61,7 +61,7 @@ class Substitution extends TSubstitution {
6161
}
6262

6363
/**
64-
* Get a `Locatable` that represents a where this substitution was declared in the source code.
64+
* Get a `Locatable` that represents where this substitution was declared in the source code.
6565
*
6666
* The result may be a `TypeMention`, `Call`, etc. depending on the kind of template and how it is
6767
* being used, but it handles the various template cases for you.

cpp/misra/src/rules/RULE-28-3-1/NonConstPredicateFunctionObject.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ where
3030
not callOperator instanceof ConstMemberFunction
3131
select usageSite, "Predicate usage of $@ has $@", callOperator.getDeclaringType(),
3232
"callable object " + callOperator.getDeclaringType().getName(), callOperator,
33-
"non const operator()."
33+
"non-const operator()."
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
| test.cpp:15:8:15:10 | type mention | Predicate usage of $@ has $@ | test.cpp:10:8:10:9 | F1 | callable object F1 | test.cpp:11:8:11:17 | operator() | non const operator(). |
2-
| test.cpp:20:3:20:11 | call to sort | Predicate usage of $@ has $@ | test.cpp:10:8:10:9 | F1 | callable object F1 | test.cpp:11:8:11:17 | operator() | non const operator(). |
1+
| test.cpp:15:8:15:10 | type mention | Predicate usage of $@ has $@ | test.cpp:10:8:10:9 | F1 | callable object F1 | test.cpp:11:8:11:17 | operator() | non-const operator(). |
2+
| test.cpp:20:3:20:11 | call to sort | Predicate usage of $@ has $@ | test.cpp:10:8:10:9 | F1 | callable object F1 | test.cpp:11:8:11:17 | operator() | non-const operator(). |

0 commit comments

Comments
 (0)