mirror of
https://github.com/github/codeql.git
synced 2026-04-26 09:15:12 +02:00
Merge pull request #740 from ian-semmle/inline_ns
C++: Add inline namespace support
This commit is contained in:
@@ -66,6 +66,11 @@ class Namespace extends NameQualifyingElement, @namespace {
|
||||
/** Gets a child namespace of this namespace. */
|
||||
Namespace getAChildNamespace() { namespacembrs(underlyingElement(this),unresolveElement(result)) }
|
||||
|
||||
/** Holds if the namespace is inline. */
|
||||
predicate isInline() {
|
||||
namespace_inline(underlyingElement(this))
|
||||
}
|
||||
|
||||
/** Holds if this namespace may be from source. */
|
||||
override predicate fromSource() { this.getADeclaration().fromSource() }
|
||||
|
||||
|
||||
@@ -1039,6 +1039,10 @@ namespaces(
|
||||
string name: string ref
|
||||
);
|
||||
|
||||
namespace_inline(
|
||||
unique int id: @namespace ref
|
||||
);
|
||||
|
||||
namespacembrs(
|
||||
int parentid: @namespace ref,
|
||||
unique int memberid: @namespacembr ref
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user