CPP: Deprecate MacroInvocationExpr.

This commit is contained in:
Geoffrey White
2018-12-13 11:30:32 +00:00
parent 75b1fb36ec
commit a1caa85172

View File

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