mirror of
https://github.com/github/codeql.git
synced 2026-05-01 19:55:15 +02:00
@@ -1,3 +1,7 @@
|
||||
/**
|
||||
* Provides a class that models parameters to functions.
|
||||
*/
|
||||
|
||||
import semmle.code.cpp.Location
|
||||
import semmle.code.cpp.Declaration
|
||||
private import semmle.code.cpp.internal.ResolveClass
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
/**
|
||||
* Provides classes for modeling specifiers and attributes.
|
||||
*/
|
||||
|
||||
import semmle.code.cpp.Element
|
||||
private import semmle.code.cpp.internal.ResolveClass
|
||||
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
/**
|
||||
* Provides classes for modeling `struct`s.
|
||||
*/
|
||||
|
||||
import semmle.code.cpp.Type
|
||||
import semmle.code.cpp.Class
|
||||
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
/**
|
||||
* Provides classes for modeling typedefs and type aliases.
|
||||
*/
|
||||
|
||||
import semmle.code.cpp.Type
|
||||
private import semmle.code.cpp.internal.ResolveClass
|
||||
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
/**
|
||||
* Provides classes for modeling `union`s.
|
||||
*/
|
||||
|
||||
import semmle.code.cpp.Type
|
||||
import semmle.code.cpp.Struct
|
||||
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
/**
|
||||
* Provides classes for modeling user-defined types such as classes, typedefs
|
||||
* and enums.
|
||||
*/
|
||||
|
||||
import semmle.code.cpp.Declaration
|
||||
import semmle.code.cpp.Type
|
||||
import semmle.code.cpp.Function
|
||||
@@ -83,6 +88,9 @@ class UserType extends Type, Declaration, NameQualifyingElement, AccessHolder, @
|
||||
* type exactly - but this is not apparent from its subclasses
|
||||
*/
|
||||
|
||||
/**
|
||||
* Gets a child declaration within this user-defined type.
|
||||
*/
|
||||
Declaration getADeclaration() { none() }
|
||||
|
||||
override string explain() { result = this.getName() }
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
/**
|
||||
* Provides classes for modeling variables and their declarations.
|
||||
*/
|
||||
|
||||
import semmle.code.cpp.Element
|
||||
import semmle.code.cpp.exprs.Access
|
||||
import semmle.code.cpp.Initializer
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
/**
|
||||
* Provides predicates for identifying function calls that open or close a file.
|
||||
*/
|
||||
|
||||
import cpp
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
/**
|
||||
* Security pack options.
|
||||
*
|
||||
* see https://semmle.com/wiki/display/SD/_Configuring+SecurityOptions+for+your+code+base
|
||||
@@ -9,6 +9,10 @@
|
||||
|
||||
import semmle.code.cpp.security.Security
|
||||
|
||||
/**
|
||||
* This class overrides `SecurityOptions` and can be used to add project
|
||||
* specific customization.
|
||||
*/
|
||||
class CustomSecurityOptions extends SecurityOptions {
|
||||
override predicate sqlArgument(string function, int arg) {
|
||||
SecurityOptions.super.sqlArgument(function, arg)
|
||||
|
||||
Reference in New Issue
Block a user