[all-commits] [llvm/llvm-project] 6e28b8: AlignConsecutiveDeclarations not working for 'cons...

MyDeveloperDay via All-commits all-commits at lists.llvm.org
Tue Dec 21 05:58:34 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6e28b86cc629c351b1f5d238146af1b6f7ceb785
      https://github.com/llvm/llvm-project/commit/6e28b86cc629c351b1f5d238146af1b6f7ceb785
  Author: mydeveloperday <mydeveloperday at gmail.com>
  Date:   2021-12-21 (Tue, 21 Dec 2021)

  Changed paths:
    M clang/include/clang/Format/Format.h
    M clang/lib/Format/TokenAnnotator.cpp
    M clang/unittests/Format/FormatTestJS.cpp

  Log Message:
  -----------
  AlignConsecutiveDeclarations not working for 'const' keyword in JavsScript

https://github.com/llvm/llvm-project/issues/49846

Fixes #49846

AlignConsecutiveDeclarations  is not working for "let" and "const" in JavaScript

let letVariable     = 5;
const constVariable = 10;

Reviewed By: owenpan, HazardyKnusperkeks, curdeius

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




More information about the All-commits mailing list