[all-commits] [llvm/llvm-project] 897cc8: [RecursiveASTVisitor] Fix RecursiveASTVisitor (RAV...

Shivam Gupta via All-commits all-commits at lists.llvm.org
Thu Oct 26 00:10:02 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 897cc8a7d7c0e47686322dbd4b95ecad30bb2298
      https://github.com/llvm/llvm-project/commit/897cc8a7d7c0e47686322dbd4b95ecad30bb2298
  Author: Shivam Gupta <shivam98.tkg at gmail.com>
  Date:   2023-10-26 (Thu, 26 Oct 2023)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/AST/RecursiveASTVisitor.h
    M clang/unittests/Tooling/CMakeLists.txt
    A clang/unittests/Tooling/RecursiveASTVisitorTests/BitfieldInitializer.cpp

  Log Message:
  -----------
  [RecursiveASTVisitor] Fix RecursiveASTVisitor (RAV) fails to visit the initializer of a bitfield (#69557)

The problem was introduced in the commit
https://github.com/llvm/llvm-project/commit/6b8e3c02ca44fb6c3738bb0c75859c11a03e30ed
when the possibility of initialized bitfields was added, but the logic
in RecursiveASTVisitor was not updated. This PR fixed that.

This fixes https://github.com/llvm/llvm-project/issues/64916.

Patch by Scott McPeak

---------

Co-authored-by: cor3ntin <corentinjabot at gmail.com>




More information about the All-commits mailing list