[all-commits] [llvm/llvm-project] 36c2ab: [clang-format] do not insert spaces around inline ...

Krasimir Georgiev via All-commits all-commits at lists.llvm.org
Thu Mar 5 05:19:58 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 36c2ab8d04cd9ff2e50cffa1ca6b3de00e4faa81
      https://github.com/llvm/llvm-project/commit/36c2ab8d04cd9ff2e50cffa1ca6b3de00e4faa81
  Author: Krasimir Georgiev <krasimir at google.com>
  Date:   2020-03-05 (Thu, 05 Mar 2020)

  Changed paths:
    M clang/lib/Format/FormatToken.h
    M clang/lib/Format/TokenAnnotator.cpp
    M clang/unittests/Format/FormatTest.cpp

  Log Message:
  -----------
  [clang-format] do not insert spaces around inline asm symbolic names

Summary:
Fixes https://bugs.llvm.org/show_bug.cgi?id=45108.

The `[` in such cases was mis-annotated as an `TT_ArrayInitializerLSquare`.

Reviewers: hans

Reviewed By: hans

Subscribers: cfe-commits

Tags: #clang

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




More information about the All-commits mailing list