mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
@@ -4,11 +4,7 @@
|
|||||||
* qualified.
|
* qualified.
|
||||||
*
|
*
|
||||||
* This file contains classes that mirror the standard AST classes for C++, but
|
* This file contains classes that mirror the standard AST classes for C++, but
|
||||||
* these classes are only concerned with naming. The other difference is that
|
* these classes are only concerned with naming.
|
||||||
* these classes don't use the `ResolveClass.qll` mechanisms like
|
|
||||||
* `unresolveElement` because these classes should eventually be part of the
|
|
||||||
* implementation of `ResolveClass.qll`, allowing it to match up classes when
|
|
||||||
* their qualified names and parameters match.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
private import semmle.code.cpp.Declaration as D
|
private import semmle.code.cpp.Declaration as D
|
||||||
|
|||||||
@@ -115,15 +115,13 @@ private module Cached {
|
|||||||
*/
|
*/
|
||||||
cached
|
cached
|
||||||
predicate isClass(@usertype t) {
|
predicate isClass(@usertype t) {
|
||||||
(
|
usertypes(t, _, 1) or
|
||||||
usertypes(t, _, 1) or
|
usertypes(t, _, 2) or
|
||||||
usertypes(t, _, 2) or
|
usertypes(t, _, 3) or
|
||||||
usertypes(t, _, 3) or
|
usertypes(t, _, 6) or
|
||||||
usertypes(t, _, 6) or
|
usertypes(t, _, 10) or
|
||||||
usertypes(t, _, 10) or
|
usertypes(t, _, 11) or
|
||||||
usertypes(t, _, 11) or
|
usertypes(t, _, 12)
|
||||||
usertypes(t, _, 12)
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
cached
|
cached
|
||||||
|
|||||||
Reference in New Issue
Block a user