[clang] Fix redundant macro expansion checks in ASTMatchers (PR #117143)

2024-11-25 Thread via cfe-commits
https://github.com/mandymimi updated https://github.com/llvm/llvm-project/pull/117143 >From b411d9185a6f761901bcc7c8ed147a8efd3b5301 Mon Sep 17 00:00:00 2001 From: wangmi Date: Tue, 26 Nov 2024 07:11:58 + Subject: [PATCH] [ASTMatcher] Fix redundant macro expansion checks in getExpansionLoc

[clang] Fix redundant macro expansion checks in ASTMatchers (PR #117143)

2024-11-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: mandymi (mandymimi) Changes A performance issue was descibed in #114521 **Root Cause**: The function getExpansionLocOfMacro is responsible for finding the expansion location of macros. When dealing with macro parameters, it recursively

[clang] Fix redundant macro expansion checks in ASTMatchers (PR #117143)

2024-11-21 Thread via cfe-commits
github-actions[bot] wrote: Thank you for submitting a Pull Request (PR) to the LLVM Project! This PR will be automatically labeled and the relevant teams will be notified. If you wish to, you can add reviewers by using the "Reviewers" section on this page. If this is not working for you, it

[clang] Fix redundant macro expansion checks in ASTMatchers (PR #117143)

2024-11-21 Thread via cfe-commits
https://github.com/mandymimi created https://github.com/llvm/llvm-project/pull/117143 A performance issue was descibed in #114521 **Root Cause**: The function getExpansionLocOfMacro is responsible for finding the expansion location of macros. When dealing with macro parameters, it recursivel