[clang] [AST] Use llvm::none_of (NFC) (PR #141447)

2025-05-26 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/141447 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] c7ccfc6 - Thread Safety Analysis: Support reentrant capabilities (#137133)

2025-05-26 Thread via cfe-commits
Author: Marco Elver Date: 2025-05-26T17:03:55+02:00 New Revision: c7ccfc6dfc1c2d0ca9cf5615f9f95bb7ad78b1c9 URL: https://github.com/llvm/llvm-project/commit/c7ccfc6dfc1c2d0ca9cf5615f9f95bb7ad78b1c9 DIFF: https://github.com/llvm/llvm-project/commit/c7ccfc6dfc1c2d0ca9cf5615f9f95bb7ad78b1c9.diff L

[clang] [clang][AIX] Fix -print-runtime-dir fallback on AIX (PR #141439)

2025-05-26 Thread Daniel Chen via cfe-commits
@@ -933,11 +933,16 @@ ToolChain::getTargetSubDirPath(StringRef BaseDir) const { if (auto Path = getPathForTriple(T)) return *Path; - if (T.isOSAIX() && T.getEnvironment() == Triple::UnknownEnvironment) { -// Strip unknown environment from the triple. -const llvm

[clang] [clang][AIX] Fix -print-runtime-dir fallback on AIX (PR #141439)

2025-05-26 Thread Daniel Chen via cfe-commits
DanielCChen wrote: Another related question but not necessarily in the scope of this PR: It seems both `aix-ld.c` and `aix-rtlib.c` still have the "old" OS path in test. They all pass though after we change the default to per target for `libclang_rt*.a`. Is it expected? If so, should the change

[clang] [clang][AIX] Fix -print-runtime-dir fallback on AIX (PR #141439)

2025-05-26 Thread Jake Egan via cfe-commits
@@ -933,11 +933,16 @@ ToolChain::getTargetSubDirPath(StringRef BaseDir) const { if (auto Path = getPathForTriple(T)) return *Path; - if (T.isOSAIX() && T.getEnvironment() == Triple::UnknownEnvironment) { -// Strip unknown environment from the triple. -const llvm

[clang] [clang] Implement address sanitizer on AIX (PR #129925)

2025-05-26 Thread Jake Egan via cfe-commits
https://github.com/jakeegan updated https://github.com/llvm/llvm-project/pull/129925 >From 072f4eca3825729d69d423d774c8a3298cb624a8 Mon Sep 17 00:00:00 2001 From: Jake Egan Date: Wed, 5 Mar 2025 01:57:38 -0500 Subject: [PATCH 1/6] [clang] Implement address sanitizer on AIX (1/3) The PR include

[clang] [analyzer] Introduce the check::BlockEntrance checker callback (PR #140924)

2025-05-26 Thread Donát Nagy via cfe-commits
@@ -166,6 +179,23 @@ class CheckerDocumentation /// check::Bind void checkBind(SVal Loc, SVal Val, const Stmt *S, CheckerContext &) const {} + /// Called after a CFG edge is taken within a function. + /// + /// This callback can be used to obtain information about poten

[clang] Trying to fix undefined symbol error caused by iterator variable (PR #141507)

2025-05-26 Thread via cfe-commits
https://github.com/ShashwathiNavada created https://github.com/llvm/llvm-project/pull/141507 When a mapper is declared with an iterator variable inside the map clause, it results in unintended behavior due to the iterator being implicitly created but left uninitialized. Testcase: ``` typedef

[clang] Trying to fix undefined symbol error caused by iterator variable (PR #141507)

2025-05-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: None (ShashwathiNavada) Changes When a mapper is declared with an iterator variable inside the map clause, it results in unintended behavior due to the iterator being implicitly created but left uninitialized. Testcase: ``` typed

[clang] [analyzer] Introduce the check::BlockEntrance checker callback (PR #140924)

2025-05-26 Thread Balázs Benics via cfe-commits
@@ -548,6 +564,8 @@ class CheckerProgramPointTag : public SimpleProgramPointTag { template class Checker : public CHECK1, public CHECKs..., public CheckerBase { public: + using BlockEntrance = clang::BlockEntrance; balazs-benics-sonarsource wrote: Yes, the

[clang] Trying to fix undefined symbol error caused by iterator variable (PR #141507)

2025-05-26 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff HEAD~1 HEAD --extensions cpp -- clang/lib/CodeGen/CGExpr.cpp clang/lib/Sema/SemaOpenM

[clang] Trying to fix undefined symbol error caused by iterator variable (PR #141507)

2025-05-26 Thread via cfe-commits
https://github.com/ShashwathiNavada updated https://github.com/llvm/llvm-project/pull/141507 >From 435206a8beb2af0368757bd1cf0850db30088ca5 Mon Sep 17 00:00:00 2001 From: Shashwathi N Date: Mon, 19 May 2025 14:29:47 -0500 Subject: [PATCH 1/3] Trying to fix undefined symbol error caused by itera

[clang] Trying to fix undefined symbol error caused by iterator variable (PR #141507)

2025-05-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (ShashwathiNavada) Changes When a mapper is declared with an iterator variable inside the map clause, it results in unintended behavior due to the iterator being implicitly created but left uninitialized. Testcase: ``` typedef struc

[clang] [analyzer] Introduce the check::BlockEntrance checker callback (PR #140924)

2025-05-26 Thread Balázs Benics via cfe-commits
@@ -548,6 +564,8 @@ class CheckerProgramPointTag : public SimpleProgramPointTag { template class Checker : public CHECK1, public CHECKs..., public CheckerBase { public: + using BlockEntrance = clang::BlockEntrance; balazs-benics-sonarsource wrote: > Note th

[clang] [Feat] Allow Finding across only parts of an AST. (PR #127423)

2025-05-26 Thread Takuto Ikuta via cfe-commits
atetubou wrote: What is the current status of this PR? @matts1 is it possible to apply the idea from @HighCommander4 ? https://github.com/llvm/llvm-project/pull/127423 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-

[clang] [clang][AIX] Fix -print-runtime-dir fallback on AIX (PR #141439)

2025-05-26 Thread Jake Egan via cfe-commits
https://github.com/jakeegan updated https://github.com/llvm/llvm-project/pull/141439 >From b044f81c6d1ed67ce7ee27bce7a62d36b3841bad Mon Sep 17 00:00:00 2001 From: Jake Egan Date: Sun, 25 May 2025 19:40:59 -0400 Subject: [PATCH 1/3] Fix rt dir fallback --- clang/lib/Driver/ToolChain.cpp

[clang] [libcxx] [clang] Add builtin to clear padding bytes (prework for P0528R3) (PR #75371)

2025-05-26 Thread via cfe-commits
@@ -2538,6 +2541,311 @@ static RValue EmitHipStdParUnsupportedBuiltin(CodeGenFunction *CGF, return RValue::get(CGF->Builder.CreateCall(UBF, Args)); } +namespace { + +struct PaddingClearer { + PaddingClearer(CodeGenFunction &F) + : CGF(F), CharWidth(CGF.getContext().ge

[clang] [analyzer][NFC] Introduce framework for checker families (PR #139256)

2025-05-26 Thread Balazs Benics via cfe-commits
=?utf-8?q?Don=C3=A1t?= Nagy , =?utf-8?q?Don=C3=A1t?= Nagy , =?utf-8?q?Don=C3=A1t?= Nagy , =?utf-8?q?Don=C3=A1t?= Nagy , =?utf-8?q?Don=C3=A1t?= Nagy , =?utf-8?q?Don=C3=A1t?= Nagy ,Balazs Benics ,Balazs Benics , =?utf-8?q?Don=C3=A1t?= Nagy , =?utf-8?q?Don=C3=A1t?= Nagy , =?utf-8?q?Don=C3=A1t?= Nagy

[clang] [libcxx] [clang] Add builtin to clear padding bytes (prework for P0528R3) (PR #75371)

2025-05-26 Thread via cfe-commits
huixie90 wrote: > Bitfield load and store operations should be done using the same offset/size > we normally use to access the bitfield; unconditionally using byte load/store > operations will impair optimizations/performance. I guess this might not be > possible when unions are involved, but

[clang] [clang][AIX] Fix -print-runtime-dir fallback on AIX (PR #141439)

2025-05-26 Thread Daniel Chen via cfe-commits
@@ -933,11 +933,16 @@ ToolChain::getTargetSubDirPath(StringRef BaseDir) const { if (auto Path = getPathForTriple(T)) return *Path; - if (T.isOSAIX() && T.getEnvironment() == Triple::UnknownEnvironment) { -// Strip unknown environment from the triple. -const llvm

[clang] [clang][AIX] Fix -print-runtime-dir fallback on AIX (PR #141439)

2025-05-26 Thread Daniel Chen via cfe-commits
https://github.com/DanielCChen edited https://github.com/llvm/llvm-project/pull/141439 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Implement address sanitizer on AIX (PR #129925)

2025-05-26 Thread Jake Egan via cfe-commits
@@ -256,6 +256,8 @@ def err_drv_malformed_sanitizer_metadata_ignorelist : Error< "malformed sanitizer metadata ignorelist: '%0'">; def err_drv_unsupported_static_sanitizer_darwin : Error< jakeegan wrote: But AIX doesn't support shared, rather than static. h

[clang-tools-extra] Follow style configuration in clangd when inserting missing includes (PR #140594)

2025-05-26 Thread via cfe-commits
https://github.com/Harald-R updated https://github.com/llvm/llvm-project/pull/140594 >From 3b293aa3af6d5755bfd2a83c20726ec8fb871bba Mon Sep 17 00:00:00 2001 From: Harald-R Date: Sun, 18 May 2025 19:07:59 +0300 Subject: [PATCH 1/6] Follow style configuration in clangd include cleaner --- clang

[clang-tools-extra] Follow style configuration in clangd when inserting missing includes (PR #140594)

2025-05-26 Thread via cfe-commits
@@ -262,6 +264,8 @@ TEST(IncludeCleaner, GenerateMissingHeaderDiags) { TU.Filename = "main.cpp"; TU.AdditionalFiles["a.h"] = guard("#include \"b.h\""); TU.AdditionalFiles["b.h"] = guard("void b();"); + TU.AdditionalFiles["a_angled.h"] = guard("#include \"b_angled.h\"");

[clang] [analyzer][NFC] Introduce framework for checker families (PR #139256)

2025-05-26 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat closed https://github.com/llvm/llvm-project/pull/139256 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 6833076 - [analyzer][NFC] Introduce framework for checker families (#139256)

2025-05-26 Thread via cfe-commits
Author: Donát Nagy Date: 2025-05-26T20:27:42+02:00 New Revision: 6833076a5d9f5719539a24e900037da5a3979289 URL: https://github.com/llvm/llvm-project/commit/6833076a5d9f5719539a24e900037da5a3979289 DIFF: https://github.com/llvm/llvm-project/commit/6833076a5d9f5719539a24e900037da5a3979289.diff LO

[clang-tools-extra] [clang-tidy] Add avoid-pragma-once. (PR #140388)

2025-05-26 Thread Tommy Chen via cfe-commits
dl8sd11 wrote: @HerrCai0907 could you help me merge this? Thanks! https://github.com/llvm/llvm-project/pull/140388 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] Follow style configuration in clangd when inserting missing includes (PR #140594)

2025-05-26 Thread via cfe-commits
Harald-R wrote: @HighCommander4 @kadircet many thanks for the reviews! Added a commit which takes the `QuotedHeaders` filter into account: https://github.com/llvm/llvm-project/pull/140594/commits/7564e9cd65421b5c7e3c6428f7f073fa6f5e3ec5. There is some duplication with the [logic in the include

[clang] [NFC][analyzer] Rename getTagDescription to getDebugName (PR #141511)

2025-05-26 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat created https://github.com/llvm/llvm-project/pull/141511 None From e19773f3a1c52213ec1afe5329c2715b6119ed33 Mon Sep 17 00:00:00 2001 From: Balazs Benics Date: Thu, 15 May 2025 19:44:55 +0200 Subject: [PATCH] [NFC][analyzer] Rename getTagDescription to getDebugName

[clang] [NFC][analyzer] Rename getTagDescription to getDebugName (PR #141511)

2025-05-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 Author: Donát Nagy (NagyDonat) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/141511.diff 9 Files Affected: - (modified) clang/include/clang/Analysis/ProgramPoint.h (+2-2) - (modified) clang/include/clang/S

[clang] [flang] [flang][flang-driver] Support flag -finstrument-functions (PR #137996)

2025-05-26 Thread Steve Scalpone via cfe-commits
sscalpone wrote: Hi @anchuraj! Nice patch! Are you interesting in extending the front-end handling to support: ``` -finstrument-functions-exclude-function-list=sym,sym,... ``` ``` -finstrument-functions-exclude-file-list=file,file,... ``` In my experience, if found that application engineers g

[clang] [NFC][analyzer] Rename getTagDescription to getDebugName (PR #141511)

2025-05-26 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat ready_for_review https://github.com/llvm/llvm-project/pull/141511 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Introduce the check::BlockEntrance checker callback (PR #140924)

2025-05-26 Thread Donát Nagy via cfe-commits
@@ -548,6 +564,8 @@ class CheckerProgramPointTag : public SimpleProgramPointTag { template class Checker : public CHECK1, public CHECKs..., public CheckerBase { public: + using BlockEntrance = clang::BlockEntrance; NagyDonat wrote: > As I was thinking about

[clang] [analyzer] Introduce the check::BlockEntrance checker callback (PR #140924)

2025-05-26 Thread Balazs Benics via cfe-commits
@@ -548,6 +564,8 @@ class CheckerProgramPointTag : public SimpleProgramPointTag { template class Checker : public CHECK1, public CHECKs..., public CheckerBase { public: + using BlockEntrance = clang::BlockEntrance; steakhal wrote: Dont worry. https://githu

[clang] [analyzer] Introduce the check::BlockEntrance checker callback (PR #140924)

2025-05-26 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat edited https://github.com/llvm/llvm-project/pull/140924 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC][analyzer] Rename getTagDescription to getDebugName (PR #141511)

2025-05-26 Thread Balazs Benics via cfe-commits
steakhal wrote: In hind sight, maybe "debugTag" is the best of both worlds. WDYT? https://github.com/llvm/llvm-project/pull/141511 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC][analyzer] Rename getTagDescription to getDebugName (PR #141511)

2025-05-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Donát Nagy (NagyDonat) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/141511.diff 9 Files Affected: - (modified) clang/include/clang/Analysis/ProgramPoint.h (+2-2) - (modified) clang/include/clang/StaticAnalyzer/Core

[clang] [NFC][analyzer] Rename getTagDescription to getDebugName (PR #141511)

2025-05-26 Thread Donát Nagy via cfe-commits
NagyDonat wrote: > In hind sight, maybe "debugTag" is the best of both worlds. WDYT? Why not :smile: ? https://github.com/llvm/llvm-project/pull/141511 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/list

[clang] [llvm] [UBSan] Implement src:*=sanitize for UBSan (PR #140529)

2025-05-26 Thread Vitaly Buka via cfe-commits
@@ -56,10 +56,20 @@ void SanitizerSpecialCaseList::createSanitizerSections() { bool SanitizerSpecialCaseList::inSection(SanitizerMask Mask, StringRef Prefix, StringRef Query, StringRef Category) c

[clang] [NFC][analyzer] Rename getTagDescription to getDebugName (PR #141511)

2025-05-26 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat updated https://github.com/llvm/llvm-project/pull/141511 From e19773f3a1c52213ec1afe5329c2715b6119ed33 Mon Sep 17 00:00:00 2001 From: Balazs Benics Date: Thu, 15 May 2025 19:44:55 +0200 Subject: [PATCH 1/2] [NFC][analyzer] Rename getTagDescription to getDebugName -

[clang-tools-extra] [clang-tidy] Return error code on config parse error (PR #136167)

2025-05-26 Thread Carlos Galvez via cfe-commits
@@ -46,20 +46,65 @@ TEST(ClangTidyOptionsProvider, InMemoryFileSystems) { FileOptionsProvider FileOpt({}, {}, {}, FileSystem); - ClangTidyOptions File1Options = + llvm::ErrorOr File1Options = FileOpt.getOptions("ProjectRoot/SubDir1/File.cpp"); - ClangTidyOptions F

[clang] [NFC][analyzer] Rename getTagDescription to getDebugName (PR #141511)

2025-05-26 Thread Balazs Benics via cfe-commits
=?utf-8?q?Don=C3=A1t?= Nagy Message-ID: In-Reply-To: https://github.com/steakhal approved this pull request. https://github.com/llvm/llvm-project/pull/141511 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mail

[clang-tools-extra] [clang-tidy] Return error code on config parse error (PR #136167)

2025-05-26 Thread Carlos Galvez via cfe-commits
@@ -265,8 +265,16 @@ const ClangTidyOptions &ClangTidyContext::getOptions() const { ClangTidyOptions ClangTidyContext::getOptionsForFile(StringRef File) const { // Merge options on top of getDefaults() as a safeguard against options with // unset values. - return ClangTid

[clang-tools-extra] [clang-tidy] Return error code on config parse error (PR #136167)

2025-05-26 Thread Carlos Galvez via cfe-commits
@@ -46,20 +46,65 @@ TEST(ClangTidyOptionsProvider, InMemoryFileSystems) { FileOptionsProvider FileOpt({}, {}, {}, FileSystem); - ClangTidyOptions File1Options = + llvm::ErrorOr File1Options = FileOpt.getOptions("ProjectRoot/SubDir1/File.cpp"); - ClangTidyOptions F

[clang-tools-extra] [clang-tidy] Return error code on config parse error (PR #136167)

2025-05-26 Thread Carlos Galvez via cfe-commits
https://github.com/carlosgalvezp edited https://github.com/llvm/llvm-project/pull/136167 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Remap paths in OpenMP runtime calls (#82541) (PR #141250)

2025-05-26 Thread Dan McGregor via cfe-commits
dankm wrote: @jdoerfert it looks like you wrote the original code I'm modifying here, so I'd like your feedback. Don't know who else would be interested here. https://github.com/llvm/llvm-project/pull/141250 ___ cfe-commits mailing list cfe-commits@li

[clang] [analyzer] Introduce the check::BlockEntrance checker callback (PR #140924)

2025-05-26 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat edited https://github.com/llvm/llvm-project/pull/140924 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Introduce the check::BlockEntrance checker callback (PR #140924)

2025-05-26 Thread Donát Nagy via cfe-commits
@@ -166,6 +179,23 @@ class CheckerDocumentation /// check::Bind void checkBind(SVal Loc, SVal Val, const Stmt *S, CheckerContext &) const {} + /// Called after a CFG edge is taken within a function. + /// + /// This callback can be used to obtain information about poten

[clang] [analyzer] Introduce the check::BlockEntrance checker callback (PR #140924)

2025-05-26 Thread Donát Nagy via cfe-commits
@@ -0,0 +1,357 @@ +//===- unittests/StaticAnalyzer/BlockEntranceCallbackTest.cpp -===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang] [analyzer] Introduce the check::BlockEntrance checker callback (PR #140924)

2025-05-26 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat edited https://github.com/llvm/llvm-project/pull/140924 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [NVPTX] Add pm_event intrinsics (PR #141278)

2025-05-26 Thread Durgadoss R via cfe-commits
@@ -1868,6 +1868,38 @@ If the request failed, the behavior of these intrinsics is undefined. For more information, refer `PTX ISA

[clang] [NFC][analyzer] Rename getTagDescription to getDebugName (PR #141511)

2025-05-26 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat closed https://github.com/llvm/llvm-project/pull/141511 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 73c4929 - [NFC][analyzer] Rename getTagDescription to getDebugName (#141511)

2025-05-26 Thread via cfe-commits
Author: Donát Nagy Date: 2025-05-26T21:29:09+02:00 New Revision: 73c49293220bb36e430d9c840568d45c886bd2ab URL: https://github.com/llvm/llvm-project/commit/73c49293220bb36e430d9c840568d45c886bd2ab DIFF: https://github.com/llvm/llvm-project/commit/73c49293220bb36e430d9c840568d45c886bd2ab.diff LO

[clang] [NFC][analyzer] Rename getTagDescription to getDebugName (PR #141511)

2025-05-26 Thread Donát Nagy via cfe-commits
NagyDonat wrote: Oops, forgot to update the title before merging, so it still refers to `getDebugName` :sweat: https://github.com/llvm/llvm-project/pull/141511 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mai

[clang] [analyzer] Introduce the check::BlockEntrance checker callback (PR #140924)

2025-05-26 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat approved this pull request. I also read the tests and the change LGTM if you move the explanations from the very helpful review comments https://github.com/llvm/llvm-project/pull/140924/files#r2107471659 and https://github.com/llvm/llvm-project/pull/140924/files#r2

[clang] [analyzer] Introduce the check::BlockEntrance checker callback (PR #140924)

2025-05-26 Thread Donát Nagy via cfe-commits
@@ -0,0 +1,357 @@ +//===- unittests/StaticAnalyzer/BlockEntranceCallbackTest.cpp -===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang-tools-extra] [clang-tidy] Return error code on config parse error (PR #136167)

2025-05-26 Thread Carlos Galvez via cfe-commits
@@ -46,20 +46,20 @@ TEST(ClangTidyOptionsProvider, InMemoryFileSystems) { FileOptionsProvider FileOpt({}, {}, {}, FileSystem); - ClangTidyOptions File1Options = + llvm::ErrorOr File1Options = FileOpt.getOptions("ProjectRoot/SubDir1/File.cpp"); - ClangTidyOptions F

[clang] [clang][AIX] Fix -print-runtime-dir fallback on AIX (PR #141439)

2025-05-26 Thread Daniel Chen via cfe-commits
https://github.com/DanielCChen edited https://github.com/llvm/llvm-project/pull/141439 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver][X86] Add -m[no-]apxf to m_x86_Features_Group (PR #140874)

2025-05-26 Thread Nico Weber via cfe-commits
nico wrote: Looks like this breaks tests on macOS: http://45.33.8.238/macm1/107398/step_6.txt Please take a look and revert for now if it takes a while to fix. https://github.com/llvm/llvm-project/pull/140874 ___ cfe-commits mailing list cfe-commits@

[clang] [Format] Use llvm::count_if (NFC) (PR #141518)

2025-05-26 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/141518 None >From 363881869140e8ce4874a91b9b46d64a9647a7a1 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Mon, 26 May 2025 09:43:03 -0700 Subject: [PATCH] [Format] Use llvm::count_if (NFC) --- clang/lib/For

[clang] [Format] Use llvm::count_if (NFC) (PR #141518)

2025-05-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: Kazu Hirata (kazutakahirata) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/141518.diff 1 Files Affected: - (modified) clang/lib/Format/MacroCallReconstructor.cpp (+2-3) ``diff diff --git a/clang/lib

[clang] [Lex] Remove unused includes (NFC) (PR #141523)

2025-05-26 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/141523 These are identified by misc-include-cleaner. I've filtered out those that break builds. Also, I'm staying away from llvm-config.h, config.h, and Compiler.h, which likely cause platform- or compiler-spec

[clang] [Lex] Remove unused includes (NFC) (PR #141523)

2025-05-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes These are identified by misc-include-cleaner. I've filtered out those that break builds. Also, I'm staying away from llvm-config.h, config.h, and Compiler.h, which likely cause platform- or compiler-sp

[clang] [Parse] Remove unused includes (NFC) (PR #141524)

2025-05-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes These are identified by misc-include-cleaner. I've filtered out those that break builds. Also, I'm staying away from llvm-config.h, config.h, and Compiler.h, which likely cause platform- or compiler-sp

[clang] [StaticAnalyzer] Remove unused includes (NFC) (PR #141525)

2025-05-26 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/141525 These are identified by misc-include-cleaner. I've filtered out those that break builds. Also, I'm staying away from llvm-config.h, config.h, and Compiler.h, which likely cause platform- or compiler-spec

[clang] [StaticAnalyzer] Remove unused includes (NFC) (PR #141525)

2025-05-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes These are identified by misc-include-cleaner. I've filtered out those that break builds. Also, I'm staying away from llvm-config.h, config.h, and Compiler.h, which likely cause platform- or compiler-sp

[clang] [StaticAnalyzer] Remove unused includes (NFC) (PR #141525)

2025-05-26 Thread Balazs Benics via cfe-commits
https://github.com/steakhal approved this pull request. I only spotchecked, but it should be good if it still builds. Btw, WDYT of IWYU? Maybe we could improve include hygiene for the static analyzer. https://github.com/llvm/llvm-project/pull/141525

[clang] [Parse] Remove unused includes (NFC) (PR #141524)

2025-05-26 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm approved this pull request. https://github.com/llvm/llvm-project/pull/141524 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Lex] Remove unused includes (NFC) (PR #141523)

2025-05-26 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm approved this pull request. https://github.com/llvm/llvm-project/pull/141523 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [StaticAnalyzer] Remove unused includes (NFC) (PR #141525)

2025-05-26 Thread Balazs Benics via cfe-commits
steakhal wrote: Thanks for sharing your opinion. I think for long term IWYU should be beneficial for our subsubproject, and may enable us to see how the include hierarchy looks like and to restructure and split some headers. https://github.com/llvm/llvm-project/pull/141525

[clang-tools-extra] [NFC][clangd][test] add clang-tidy config to ensure test cases sandbox (PR #141410)

2025-05-26 Thread kadir çetinkaya via cfe-commits
https://github.com/kadircet approved this pull request. https://github.com/llvm/llvm-project/pull/141410 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [StaticAnalyzer] Remove unused includes (NFC) (PR #141525)

2025-05-26 Thread Kazu Hirata via cfe-commits
kazutakahirata wrote: > I only spotchecked, but it should be good if it still builds. > > Btw, WDYT of IWYU? Maybe we could improve include hygiene for the static > analyzer. @steakhal Thanks for the review! I personally like the IWYU approach, but the LLVM project uses a different approach

[clang] [Parse] Remove unused includes (NFC) (PR #141524)

2025-05-26 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/141524 These are identified by misc-include-cleaner. I've filtered out those that break builds. Also, I'm staying away from llvm-config.h, config.h, and Compiler.h, which likely cause platform- or compiler-spec

[clang] [llvm] [HLSL][RootSignature] Add parsing infastructure for StaticSampler (PR #140180)

2025-05-26 Thread Finn Plummer via cfe-commits
https://github.com/inbelic edited https://github.com/llvm/llvm-project/pull/140180 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [HLSL][RootSignature] Add parsing infastructure for StaticSampler (PR #140180)

2025-05-26 Thread Finn Plummer via cfe-commits
https://github.com/inbelic updated https://github.com/llvm/llvm-project/pull/140180 >From 05cd843e21cd8d93a94914d13843871886146dab Mon Sep 17 00:00:00 2001 From: Finn Plummer Date: Thu, 15 May 2025 22:35:30 + Subject: [PATCH] [HLSL][RootSignature] Add parsing infastructure for StaticSample

[clang] [llvm] [NVPTX] Add pm_event intrinsics (PR #141278)

2025-05-26 Thread Alex MacLean via cfe-commits
https://github.com/AlexMaclean approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/141278 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Fix tests of lookup table generator (PR #139463)

2025-05-26 Thread Robin Caloudis via cfe-commits
robincaloudis wrote: @owenca and @ MyDeveloperDay, do you mind to take a look when you find some time? Thanks in advance. https://github.com/llvm/llvm-project/pull/139463 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/c

[clang] Revert "[clang] Fix handle_cxx.cpp after 9e306ad4" (PR #141532)

2025-05-26 Thread Walter Lee via cfe-commits
https://github.com/googlewalt created https://github.com/llvm/llvm-project/pull/141532 This reverts commit d25f95fdbc5314f30618912e18f00ad4dd720fa0, after 9e306ad4 was rolled back in e2a88553 (r576388). >From 95dc425f757d1f0a895612bca6aaf8e80f44cf9e Mon Sep 17 00:00:00 2001 From: Walter Lee D

[clang] [llvm] [HLSL][RootSignature] Add parsing infastructure for StaticSampler (PR #140180)

2025-05-26 Thread Finn Plummer via cfe-commits
https://github.com/inbelic updated https://github.com/llvm/llvm-project/pull/140180 >From 05cd843e21cd8d93a94914d13843871886146dab Mon Sep 17 00:00:00 2001 From: Finn Plummer Date: Thu, 15 May 2025 22:35:30 + Subject: [PATCH 1/2] [HLSL][RootSignature] Add parsing infastructure for StaticSa

[clang] Revert "[clang] Fix handle_cxx.cpp after 9e306ad4" (PR #141532)

2025-05-26 Thread Walter Lee via cfe-commits
https://github.com/googlewalt closed https://github.com/llvm/llvm-project/pull/141532 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Revert "[clang] Fix handle_cxx.cpp after 9e306ad4" (PR #141532)

2025-05-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Walter Lee (googlewalt) Changes This reverts commit d25f95fdbc5314f30618912e18f00ad4dd720fa0, after 9e306ad4 was rolled back in e2a88553 (r576388). --- Full diff: https://github.com/llvm/llvm-project/pull/141532.diff 1 Files Affected:

[clang] [llvm] [HLSL][RootSignature] Add parsing infastructure for StaticSampler (PR #140180)

2025-05-26 Thread Finn Plummer via cfe-commits
https://github.com/inbelic updated https://github.com/llvm/llvm-project/pull/140180 >From 05cd843e21cd8d93a94914d13843871886146dab Mon Sep 17 00:00:00 2001 From: Finn Plummer Date: Thu, 15 May 2025 22:35:30 + Subject: [PATCH 1/3] [HLSL][RootSignature] Add parsing infastructure for StaticSa

[clang] [Clang] Remap paths in OpenMP runtime calls (#82541) (PR #141250)

2025-05-26 Thread Dan McGregor via cfe-commits
@@ -1370,10 +1375,14 @@ llvm::Value *CGOpenMPRuntime::emitUpdateLocation(CodeGenFunction &CGF, SrcLocStr = OMPBuilder.getOrCreateDefaultSrcLocStr(SrcLocStrSize); } else { std::string FunctionName; +std::string FileName; if (const auto *FD = dyn_cast_or_null(

[clang-tools-extra] f1d8e37 - [NFC][clangd][test] add clang-tidy config to ensure test cases sandbox (#141410)

2025-05-26 Thread via cfe-commits
Author: Congcong Cai Date: 2025-05-27T05:56:48+08:00 New Revision: f1d8e37f2cdb7266633743072d885643c82a6e1c URL: https://github.com/llvm/llvm-project/commit/f1d8e37f2cdb7266633743072d885643c82a6e1c DIFF: https://github.com/llvm/llvm-project/commit/f1d8e37f2cdb7266633743072d885643c82a6e1c.diff

[clang-tools-extra] [NFC][clangd][test] add clang-tidy config to ensure test cases sandbox (PR #141410)

2025-05-26 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 closed https://github.com/llvm/llvm-project/pull/141410 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 36d5767 - [Lex] Remove unused includes (NFC) (#141523)

2025-05-26 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-05-26T14:57:05-07:00 New Revision: 36d57677bbbcc4f32e7aa16b73ca22fcae13a3aa URL: https://github.com/llvm/llvm-project/commit/36d57677bbbcc4f32e7aa16b73ca22fcae13a3aa DIFF: https://github.com/llvm/llvm-project/commit/36d57677bbbcc4f32e7aa16b73ca22fcae13a3aa.diff L

[clang] fe2b921 - [Parse] Remove unused includes (NFC) (#141524)

2025-05-26 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-05-26T14:57:09-07:00 New Revision: fe2b921c42349c52c87dc1a4eb79e2452b79e587 URL: https://github.com/llvm/llvm-project/commit/fe2b921c42349c52c87dc1a4eb79e2452b79e587 DIFF: https://github.com/llvm/llvm-project/commit/fe2b921c42349c52c87dc1a4eb79e2452b79e587.diff L

[clang] [Lex] Remove unused includes (NFC) (PR #141523)

2025-05-26 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/141523 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [StaticAnalyzer] Remove unused includes (NFC) (PR #141525)

2025-05-26 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/141525 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 8d49c64 - [StaticAnalyzer] Remove unused includes (NFC) (#141525)

2025-05-26 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-05-26T14:57:13-07:00 New Revision: 8d49c64fa27977071ced0ef2bac3f38ac244276f URL: https://github.com/llvm/llvm-project/commit/8d49c64fa27977071ced0ef2bac3f38ac244276f DIFF: https://github.com/llvm/llvm-project/commit/8d49c64fa27977071ced0ef2bac3f38ac244276f.diff L

[clang] [Parse] Remove unused includes (NFC) (PR #141524)

2025-05-26 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/141524 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] 4cb25e2 - [clang-tidy] Add avoid-pragma-once. (#140388)

2025-05-26 Thread via cfe-commits
Author: Tommy Chen Date: 2025-05-27T05:57:51+08:00 New Revision: 4cb25e2d37496a5f52a62a1f411a04dac20a8666 URL: https://github.com/llvm/llvm-project/commit/4cb25e2d37496a5f52a62a1f411a04dac20a8666 DIFF: https://github.com/llvm/llvm-project/commit/4cb25e2d37496a5f52a62a1f411a04dac20a8666.diff LO

[clang-tools-extra] [clang-tidy] Add avoid-pragma-once. (PR #140388)

2025-05-26 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 closed https://github.com/llvm/llvm-project/pull/140388 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] readability-redundant-smartptr-get: disable for smart pointers to arrays (PR #141092)

2025-05-26 Thread kadir çetinkaya via cfe-commits
https://github.com/kadircet approved this pull request. https://github.com/llvm/llvm-project/pull/141092 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] readability-redundant-smartptr-get: disable for smart pointers to arrays (PR #141092)

2025-05-26 Thread kadir çetinkaya via cfe-commits
@@ -43,10 +43,18 @@ internal::Matcher callToGet(const internal::Matcher &OnClass) { .bind("redundant_get"); } -internal::Matcher knownSmartptr() { +internal::Matcher knownSmartptrAny() { return recordDecl(hasAnyName("::std::unique_ptr", "::std::shared_ptr")); } +i

[clang] [Clang] Remap paths in OpenMP runtime calls (#82541) (PR #141250)

2025-05-26 Thread Dan McGregor via cfe-commits
https://github.com/dankm updated https://github.com/llvm/llvm-project/pull/141250 >From 8e534d8fe14d70e4fa65dc6d8dad8ad4de73caae Mon Sep 17 00:00:00 2001 From: Dan McGregor Date: Fri, 23 May 2025 10:19:22 -0600 Subject: [PATCH] [Clang] Remap paths in OpenMP runtime calls Apply the debug prefix

[clang] [llvm] [UBSan] Implement src:*=sanitize for UBSan (PR #140529)

2025-05-26 Thread Qinkun Bao via cfe-commits
https://github.com/qinkunbao updated https://github.com/llvm/llvm-project/pull/140529 >From b83755d2aa0c5417ab8f359aa842449213437a7a Mon Sep 17 00:00:00 2001 From: Qinkun Bao Date: Mon, 19 May 2025 11:14:01 + Subject: [PATCH 01/15] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20?= =?UT

[clang] [llvm] [Clang][LoongArch] Support target attribute for function (PR #140700)

2025-05-26 Thread via cfe-commits
@@ -0,0 +1,19 @@ +// RUN: %clang_cc1 -triple loongarch64-linux-gnu -fsyntax-only -verify %s + +// expected-error@+1 {{function multiversioning is not supported on the current target}} +void __attribute__((target("default"))) bar(void){} Ami-zhang wrote: Done.

[clang-tools-extra] [clang-tidy] added `AllowedTypes` option to `readability-qualified-auto` check (PR #136571)

2025-05-26 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor closed https://github.com/llvm/llvm-project/pull/136571 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][ExprConst][NFC] Only call getExprLoc() once (PR #141473)

2025-05-26 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. https://github.com/llvm/llvm-project/pull/141473 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

<    1   2   3   >