Skip to content

Commit 7198b3b

Browse files
committed
[CodeCompletion] Fast completion is now supported in inactive #if blocks
1 parent dd6046b commit 7198b3b

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lib/IDE/CompletionInstance.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,6 @@ template <typename Range> Decl *getElementAt(const Range &Decls, unsigned N) {
8585
/// Find the equivalent \c DeclContext with \p DC from \p SF AST.
8686
/// This assumes the AST which contains \p DC has exact the same structure with
8787
/// \p SF.
88-
/// FIXME: This doesn't support IfConfigDecl blocks. If \p DC is in an inactive
89-
/// config block, this function returns \c false.
9088
static DeclContext *getEquivalentDeclContextFromSourceFile(DeclContext *DC,
9189
SourceFile *SF) {
9290
PrettyStackTraceDeclContext trace("getting equivalent decl context for", DC);
@@ -129,7 +127,6 @@ static DeclContext *getEquivalentDeclContextFromSourceFile(DeclContext *DC,
129127
}
130128

131129
// Not found in the decl context tree.
132-
// FIXME: Probably DC is in an inactive #if block.
133130
if (N == ~0U) {
134131
return nullptr;
135132
}

0 commit comments

Comments
 (0)