[all-commits] [llvm/llvm-project] 0becc4: fix readability-braces-around-statements Stmt type...

Alexander Lanin via All-commits all-commits at lists.llvm.org
Thu Mar 25 06:45:49 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0becc4d721d0036e2e38d581bc487e27f78eb8a9
      https://github.com/llvm/llvm-project/commit/0becc4d721d0036e2e38d581bc487e27f78eb8a9
  Author: Alexander Lanin <alex at lanin.de>
  Date:   2021-03-25 (Thu, 25 Mar 2021)

  Changed paths:
    M clang-tools-extra/clang-tidy/readability/BracesAroundStatementsCheck.cpp
    M clang-tools-extra/clang-tidy/utils/LexerUtils.cpp
    M clang-tools-extra/clang-tidy/utils/LexerUtils.h
    M clang-tools-extra/test/clang-tidy/checkers/readability-braces-around-statements.cpp

  Log Message:
  -----------
  fix readability-braces-around-statements Stmt type dependency

Replaces Token based approach to identify EndLoc of Stmt with AST traversal.
This also improves handling of macros.

Fixes Bugs 22785, 25970 and 35754.




More information about the All-commits mailing list