mirror of
https://github.com/github/codeql.git
synced 2026-05-03 12:45:27 +02:00
Merge branch 'main' into nullterm2
This commit is contained in:
@@ -3,5 +3,5 @@ import cpp
|
||||
from AccessSpecifier spec
|
||||
// There is no way to create "protected" access without writing the keyword
|
||||
// `protected` in the source, so we don't need to test for that.
|
||||
where spec.hasName("private") or spec.hasName("public")
|
||||
where spec.hasName(["private", "public"])
|
||||
select spec
|
||||
|
||||
@@ -3,12 +3,7 @@ private import TestUtilities.InlineExpectationsTest
|
||||
private import semmle.code.cpp.ir.internal.IntegerConstant as Ints
|
||||
|
||||
private predicate ignoreAllocation(string name) {
|
||||
name = "i" or
|
||||
name = "p" or
|
||||
name = "q" or
|
||||
name = "s" or
|
||||
name = "t" or
|
||||
name = "?{AllAliased}"
|
||||
name = ["i", "p", "q", "s", "t", "?{AllAliased}"]
|
||||
}
|
||||
|
||||
private predicate ignoreFile(File file) {
|
||||
|
||||
Reference in New Issue
Block a user