[all-commits] [llvm/llvm-project] ca1eef: [clang-tidy] Correctly handle attributes in readab...

mitchell via All-commits all-commits at lists.llvm.org
Fri Mar 6 20:17:38 PST 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ca1eefdfc061fc062b6b9dc4149ca4a0e51bde08
      https://github.com/llvm/llvm-project/commit/ca1eefdfc061fc062b6b9dc4149ca4a0e51bde08
  Author: mitchell <mitchell.xu2 at gmail.com>
  Date:   2026-03-07 (Sat, 07 Mar 2026)

  Changed paths:
    M clang-tools-extra/clang-tidy/readability/BracesAroundStatementsCheck.cpp
    M clang-tools-extra/clang-tidy/readability/InconsistentIfElseBracesCheck.cpp
    M clang-tools-extra/clang-tidy/utils/BracesAroundStatement.cpp
    M clang-tools-extra/test/clang-tidy/checkers/readability/inconsistent-ifelse-braces-attributes.cpp

  Log Message:
  -----------
  [clang-tidy] Correctly handle attributes in readability-inconsistent-ifelse-braces (#184095)

Improved the check to correctly handle `[[likely]]` and `[[unlikely]]`
attributes placed between the if/else keyword and the opening brace.

As of AI Usage: Gemini 3 is used for pre-commit reviewing.
Closes https://github.com/llvm/llvm-project/issues/184081



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list