File tree Expand file tree Collapse file tree 2 files changed +2
-12
lines changed Expand file tree Collapse file tree 2 files changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -196,9 +196,6 @@ class SourceEntityWalker {
196
196
// / This method is called when a Module is referenced in source.
197
197
virtual bool visitModuleReference (ModuleEntity Mod, CharSourceRange Range);
198
198
199
- // / Whether walk into the inactive region in a #if config statement.
200
- virtual bool shouldWalkInactiveConfigRegion () { return false ; }
201
-
202
199
virtual bool shouldWalkIntoGenericParams () { return true ; }
203
200
204
201
// / Only walk the arguments of a macro, to represent the source as written.
Original file line number Diff line number Diff line change @@ -209,15 +209,8 @@ ASTWalker::PreWalkAction SemaAnnotator::walkToDeclPreProper(Decl *D) {
209
209
if (Loc.isValid ())
210
210
NameLen = PrecD->getName ().getLength ();
211
211
212
- } else if (auto *ICD = dyn_cast<IfConfigDecl>(D)) {
213
- if (SEWalker.shouldWalkInactiveConfigRegion ()) {
214
- for (auto Clause : ICD->getClauses ()) {
215
- for (auto Member : Clause.Elements ) {
216
- Member.walk (*this );
217
- }
218
- }
219
- return Action::SkipNode ();
220
- }
212
+ } else if (isa<IfConfigDecl>(D)) {
213
+ // Nothing to do here.
221
214
} else if (auto *MD = dyn_cast<MacroExpansionDecl>(D)) {
222
215
if (auto *macro =
223
216
dyn_cast_or_null<MacroDecl>(MD->getMacroRef ().getDecl ())) {
You can’t perform that action at this time.
0 commit comments