CPP: Deprecate MacroInvocationStmt.

This commit is contained in:
Geoffrey White
2018-12-13 11:04:56 +00:00
parent bd9a2d71ba
commit 75b1fb36ec

View File

@@ -282,8 +282,13 @@ class MacroInvocationExpr extends Expr {
/**
* A top-level statement generated by a macro invocation.
*
* DEPRECATED: Use `MacroInvocation.getStmt()` directly to get a
* statement generated at the top-level of a macro invocation. Use
* `MacroInvocation.getAnAffectedElement()` to get any element generated
* by a macro invocation.
*/
class MacroInvocationStmt extends Stmt {
deprecated class MacroInvocationStmt extends Stmt {
MacroInvocationStmt() {
exists(MacroInvocation i | this = i.getStmt())
}