[all-commits] [llvm/llvm-project] 72f2fb: [clangd] Exclude preprocessed-to-nothing tokens fr...

Sam McCall via All-commits all-commits at lists.llvm.org
Mon Jul 20 05:52:36 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 72f2fb1db4ea19b543265ceba67964174848a875
      https://github.com/llvm/llvm-project/commit/72f2fb1db4ea19b543265ceba67964174848a875
  Author: Sam McCall <sam.mccall at gmail.com>
  Date:   2020-07-20 (Mon, 20 Jul 2020)

  Changed paths:
    M clang-tools-extra/clangd/Selection.cpp
    M clang-tools-extra/clangd/unittests/SelectionTests.cpp

  Log Message:
  -----------
  [clangd] Exclude preprocessed-to-nothing tokens from selection

This prevents selection of empty preprocessor entities (like #define directives,
or text in disabled sections) creating a selection in the parent element.

Summary: Based on D83508 by Aleksandr Platonov.

Reviewers: ArcsinX, kadircet

Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, usaxena95, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D84012




More information about the All-commits mailing list