[all-commits] [llvm/llvm-project] d79715: [clang-tidy] Fix findNextTokenSkippingComments & r...

Piotr Zegar via All-commits all-commits at lists.llvm.org
Sun Apr 2 09:05:33 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d79715b6a09c538ac60a8259d540a94d17fbc824
      https://github.com/llvm/llvm-project/commit/d79715b6a09c538ac60a8259d540a94d17fbc824
  Author: Piotr Zegar <me at piotrzegar.pl>
  Date:   2023-04-02 (Sun, 02 Apr 2023)

  Changed paths:
    M clang-tools-extra/clang-tidy/utils/LexerUtils.cpp

  Log Message:
  -----------
  [clang-tidy] Fix findNextTokenSkippingComments & rangeContainsExpansionsOrDirectives

findNextTokenSkippingComments is actually a endless loop,
implementing it correctly.
rangeContainsExpansionsOrDirectives were skiping every second
token, if there were no whitespaces bettwen tokens.

Reviewed By: carlosgalvezp

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




More information about the All-commits mailing list