Skip to content

Commit 45a0979

Browse files
committed
Add a default getMacroWalkingBehavior() to unbreak out-of-tree clients
1 parent 8f42a5d commit 45a0979

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

include/swift/AST/ASTWalker.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,9 @@ class ASTWalker {
523523
}
524524

525525
/// This method configures how the walker should walk into uses of macros.
526-
virtual MacroWalking getMacroWalkingBehavior() const = 0;
526+
virtual MacroWalking getMacroWalkingBehavior() const {
527+
return MacroWalking::ArgumentsAndExpansion;
528+
}
527529

528530
/// Determine whether we should walk macro arguments (as they appear in
529531
/// source) and the expansion (which is semantically part of the program).

0 commit comments

Comments
 (0)