Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b3c50ae

Browse files
authored
Merge pull request #4262 from github/igfoo/location
C++: Deprecate Location subclasses
2 parents 159353d + 826c40f commit b3c50ae

1 file changed

Lines changed: 12 additions & 5 deletions

File tree

cpp/ql/src/semmle/code/cpp/Location.qll

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,16 +105,23 @@ class Location extends @location {
105105
}
106106

107107
/**
108+
* DEPRECATED: Use `Location` instead.
108109
* A location of an element. Not used for expressions or statements, which
109110
* instead use LocationExpr and LocationStmt respectively.
110111
*/
111-
library class LocationDefault extends Location, @location_default { }
112+
deprecated library class LocationDefault extends Location, @location_default { }
112113

113-
/** A location of a statement. */
114-
library class LocationStmt extends Location, @location_stmt { }
114+
/**
115+
* DEPRECATED: Use `Location` instead.
116+
* A location of a statement.
117+
*/
118+
deprecated library class LocationStmt extends Location, @location_stmt { }
115119

116-
/** A location of an expression. */
117-
library class LocationExpr extends Location, @location_expr { }
120+
/**
121+
* DEPRECATED: Use `Location` instead.
122+
* A location of an expression.
123+
*/
124+
deprecated library class LocationExpr extends Location, @location_expr { }
118125

119126
/**
120127
* Gets the length of the longest line in file `f`.

0 commit comments

Comments
 (0)