mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
C++: Rename classes.
This commit is contained in:
@@ -3,8 +3,8 @@ import semmle.code.cpp.models.interfaces.Taint
|
||||
/**
|
||||
* The `std::basic_string` constructor(s).
|
||||
*/
|
||||
class StringConstructor extends TaintFunction {
|
||||
StringConstructor() { this.hasQualifiedName("std", "basic_string", "basic_string") }
|
||||
class StdStringConstructor extends TaintFunction {
|
||||
StdStringConstructor() { this.hasQualifiedName("std", "basic_string", "basic_string") }
|
||||
|
||||
override predicate hasTaintFlow(FunctionInput input, FunctionOutput output) {
|
||||
// flow from any constructor argument to return value
|
||||
@@ -16,8 +16,8 @@ class StringConstructor extends TaintFunction {
|
||||
/**
|
||||
* The standard function `std::string.c_str`.
|
||||
*/
|
||||
class StringCStr extends TaintFunction {
|
||||
StringCStr() { this.hasQualifiedName("std", "basic_string", "c_str") }
|
||||
class StdStringCStr extends TaintFunction {
|
||||
StdStringCStr() { this.hasQualifiedName("std", "basic_string", "c_str") }
|
||||
|
||||
override predicate hasTaintFlow(FunctionInput input, FunctionOutput output) {
|
||||
// flow from string itself (qualifier) to return value
|
||||
|
||||
Reference in New Issue
Block a user