mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
Merge pull request #3558 from jbj/qldoc-default-objc
C++: Properly deprecate objc.qll and default.qll
This commit is contained in:
@@ -1 +1,7 @@
|
|||||||
|
/**
|
||||||
|
* DEPRECATED: use `import cpp` instead of `import default`.
|
||||||
|
*
|
||||||
|
* Provides classes and predicates for working with C/C++ code.
|
||||||
|
*/
|
||||||
|
|
||||||
import cpp
|
import cpp
|
||||||
|
|||||||
@@ -1 +1,7 @@
|
|||||||
|
/**
|
||||||
|
* DEPRECATED: Objective C is no longer supported.
|
||||||
|
*
|
||||||
|
* Import `cpp` instead of `objc`.
|
||||||
|
*/
|
||||||
|
|
||||||
import cpp
|
import cpp
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import default
|
import cpp
|
||||||
|
|
||||||
from Class c, string n
|
from Class c, string n
|
||||||
where n = count(Class x | x.getName() = c.getName()) + " distinct class(es) called " + c.getName()
|
where n = count(Class x | x.getName() = c.getName()) + " distinct class(es) called " + c.getName()
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import default
|
import cpp
|
||||||
import semmle.code.cpp.models.implementations.Allocation
|
import semmle.code.cpp.models.implementations.Allocation
|
||||||
|
|
||||||
query predicate newExprs(
|
query predicate newExprs(
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import default
|
import cpp
|
||||||
|
|
||||||
string getValueCategoryString(Expr expr) {
|
string getValueCategoryString(Expr expr) {
|
||||||
if expr.isLValueCategory()
|
if expr.isLValueCategory()
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import default
|
import cpp
|
||||||
import semmle.code.cpp.ir.IR
|
import semmle.code.cpp.ir.IR
|
||||||
import semmle.code.cpp.ir.implementation.aliased_ssa.constant.ConstantAnalysis
|
import semmle.code.cpp.ir.implementation.aliased_ssa.constant.ConstantAnalysis
|
||||||
import semmle.code.cpp.ir.internal.IntegerConstant
|
import semmle.code.cpp.ir.internal.IntegerConstant
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import default
|
import cpp
|
||||||
import semmle.code.cpp.ir.implementation.unaliased_ssa.internal.AliasAnalysis
|
import semmle.code.cpp.ir.implementation.unaliased_ssa.internal.AliasAnalysis
|
||||||
import semmle.code.cpp.ir.implementation.raw.IR
|
import semmle.code.cpp.ir.implementation.raw.IR
|
||||||
import semmle.code.cpp.ir.implementation.UseSoundEscapeAnalysis
|
import semmle.code.cpp.ir.implementation.UseSoundEscapeAnalysis
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import default
|
import cpp
|
||||||
import semmle.code.cpp.ir.implementation.aliased_ssa.internal.AliasAnalysis
|
import semmle.code.cpp.ir.implementation.aliased_ssa.internal.AliasAnalysis
|
||||||
import semmle.code.cpp.ir.implementation.aliased_ssa.internal.AliasConfiguration
|
import semmle.code.cpp.ir.implementation.aliased_ssa.internal.AliasConfiguration
|
||||||
import semmle.code.cpp.ir.implementation.unaliased_ssa.IR
|
import semmle.code.cpp.ir.implementation.unaliased_ssa.IR
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import default
|
import cpp
|
||||||
|
|
||||||
query predicate classUuids(Class cls, string uuid) {
|
query predicate classUuids(Class cls, string uuid) {
|
||||||
if exists(cls.getUuid()) then uuid = cls.getUuid() else uuid = ""
|
if exists(cls.getUuid()) then uuid = cls.getUuid() else uuid = ""
|
||||||
|
|||||||
Reference in New Issue
Block a user