Fix clangd build, NFC
authorHaojian Wu <hokein.wu@gmail.com>
Mon, 20 Jul 2020 13:11:00 +0000 (15:11 +0200)
committerHaojian Wu <hokein.wu@gmail.com>
Mon, 20 Jul 2020 13:13:20 +0000 (15:13 +0200)
clang-tools-extra/clangd/Selection.cpp

index d1677e2..2e3c491 100644 (file)
@@ -224,7 +224,7 @@ public:
     // Find which of these are preprocessed to nothing and should be ignored.
     std::vector<bool> PPIgnored(Sel.size(), false);
     for (const syntax::TokenBuffer::Expansion &X :
-         Buf.expansionsAffecting(Sel)) {
+         Buf.expansionsOverlapping(Sel)) {
       if (X.Expanded.empty()) {
         for (const syntax::Token &Tok : X.Spelled) {
           if (&Tok >= SelFirst && &Tok < SelLimit)