mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Merge pull request #20573 from MathiasVP/fix-bad-magic-on-get-file
C++: Fix bad magic on `Element.getFile`
This commit is contained in:
@@ -87,6 +87,7 @@ class ElementBase extends @element {
|
|||||||
*/
|
*/
|
||||||
class Element extends ElementBase {
|
class Element extends ElementBase {
|
||||||
/** Gets the primary file where this element occurs. */
|
/** Gets the primary file where this element occurs. */
|
||||||
|
pragma[nomagic]
|
||||||
File getFile() { result = this.getLocation().getFile() }
|
File getFile() { result = this.getLocation().getFile() }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user