[all-commits] [llvm/llvm-project] 34e39e: [clangd] Change PreambleOnlyAction with content tr...

kadir çetinkaya via All-commits all-commits at lists.llvm.org
Mon May 25 22:38:31 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 34e39eb2adc2b3f16c2c2c0607a904ee55705c01
      https://github.com/llvm/llvm-project/commit/34e39eb2adc2b3f16c2c2c0607a904ee55705c01
  Author: Kadir Cetinkaya <kadircet at google.com>
  Date:   2020-05-26 (Tue, 26 May 2020)

  Changed paths:
    M clang-tools-extra/clangd/Preamble.cpp
    M clang-tools-extra/clangd/unittests/PreambleTests.cpp

  Log Message:
  -----------
  [clangd] Change PreambleOnlyAction with content truncation

Summary:
Lexing until the token location is past preamble bound could be wrong
in some cases as preprocessor lexer can lex multiple tokens in a single call.

Reviewers: sammccall

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

Tags: #clang

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




More information about the All-commits mailing list