From 478eed3c5ac53062bfa020edc6a208379a09a1a5 Mon Sep 17 00:00:00 2001 From: liyunfei Date: Thu, 20 Nov 2025 16:15:16 +0800 Subject: [PATCH 1/2] [bugfix] Remove redundant macros --- clang-tools-extra/clang-tidy/tool/CMakeLists.txt | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/clang-tools-extra/clang-tidy/tool/CMakeLists.txt b/clang-tools-extra/clang-tidy/tool/CMakeLists.txt index 43886d57ca5a..105540f64c94 100644 --- a/clang-tools-extra/clang-tidy/tool/CMakeLists.txt +++ b/clang-tools-extra/clang-tidy/tool/CMakeLists.txt @@ -67,8 +67,6 @@ install(PROGRAMS run-clang-tidy.py DESTINATION "${CMAKE_INSTALL_BINDIR}" COMPONENT clang-tidy RENAME run-clang-tidy) -if(LLVM_BSPUB_COMMON) - install(PROGRAMS clang-tidy-stats.py - DESTINATION "${CMAKE_INSTALL_DATADIR}/clang" - COMPONENT clang-tidy) -endif() +install(PROGRAMS clang-tidy-stats.py + DESTINATION "${CMAKE_INSTALL_DATADIR}/clang" + COMPONENT clang-tidy) -- Gitee From 6b52bb938f122eb9df81ddd177d2ed491b95a8bb Mon Sep 17 00:00:00 2001 From: liyunfei Date: Thu, 20 Nov 2025 16:19:09 +0800 Subject: [PATCH 2/2] [bugfix] Replace hardcoded resource path with macro --- clang/test/Driver/prefix.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/clang/test/Driver/prefix.c b/clang/test/Driver/prefix.c index b429187a49d3..14dba1dca898 100644 --- a/clang/test/Driver/prefix.c +++ b/clang/test/Driver/prefix.c @@ -1,10 +1,10 @@ -// RUN: %clang %s -// RUN: %clang -iprefix $(dirname `which clang`)/../lib/clang/*/ -iwithprefix include %s -// RUN: %clang -iwithprefix include %s -// RUN: %clang -nostdinc -iwithprefix include %s -fgcc-compatible -// RUN: %clang -nostdinc -iprefix $(dirname `which clang`)/../lib/clang/*/ -iwithprefix include %s -fgcc-compatible -// RUN: not %clang -nostdinc -iwithprefix include %s -// RUN: not %clang -nostdinc -iprefix "" -iwithprefix include %s +// RUN: %clang %s +// RUN: %clang -iprefix %resource_dir/../ -iwithprefix include %s +// RUN: %clang -iwithprefix include %s +// RUN: %clang -nostdinc -iwithprefix include %s -fgcc-compatible +// RUN: %clang -nostdinc -iprefix %resource_dir/../ -iwithprefix include %s -fgcc-compatible +// RUN: not %clang -nostdinc -iwithprefix include %s +// RUN: not %clang -nostdinc -iprefix "" -iwithprefix include %s #include int main(void) { return 0; } -- Gitee