Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ where
not init.isCompilerGenerated()
) and
// Must be a defined constructor
c.isDefined() and
c.hasDefinition() and
// Not a compiler-generated constructor
not c.isCompilerGenerated() and
// Not a defaulted constructor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import codingstandards.cpp.autosar

class CandidateFunction extends Function {
CandidateFunction() {
isDefined() and
hasDefinition() and
isStatic() and
not isMember() and
not (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ where
or
//an non-const object defined in a header
exists(GlobalOrNamespaceVariable object |
object.isDefined() and
object.hasDefinition() and
not (
object.isConstexpr()
or
Expand Down
2 changes: 1 addition & 1 deletion cpp/common/src/codingstandards/cpp/TrivialType.qll
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ predicate hasTrivialMoveConstructor(Class c) {
forall(Class baseClass | baseClass = c.getABaseClass() | hasTrivialMoveConstructor(baseClass)) and
// The class has to be defined, otherwise we may not see the information required to deduce
// whether it does or does not have a trivial move constructor
c.isDefined()
c.hasDefinition()
}

/** A trivial copy or move constructor (see [class.copy]/12). */
Expand Down