https://github.com/kazutakahirata created
https://github.com/llvm/llvm-project/pull/123445
Note that PointerUnion::dyn_cast has been soft deprecated in
PointerUnion.h:
// FIXME: Replace the uses of is(), get() and dyn_cast() with
//isa, cast and the llvm::dyn_cast
Literal migration
https://github.com/kazutakahirata created
https://github.com/llvm/llvm-project/pull/123444
Note that PointerUnion::dyn_cast has been soft deprecated in
PointerUnion.h:
// FIXME: Replace the uses of is(), get() and dyn_cast() with
//isa, cast and the llvm::dyn_cast
Literal migration
https://github.com/kazutakahirata closed
https://github.com/llvm/llvm-project/pull/123285
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/kazutakahirata closed
https://github.com/llvm/llvm-project/pull/123284
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/kazutakahirata closed
https://github.com/llvm/llvm-project/pull/123283
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/kazutakahirata created
https://github.com/llvm/llvm-project/pull/123285
None
>From 1baa9c7445a6e65a6c9086994e728db463fe6a5f Mon Sep 17 00:00:00 2001
From: Kazu Hirata
Date: Thu, 16 Jan 2025 09:56:31 -0800
Subject: [PATCH] [AST] Avoid repeated hash lookups (NFC)
---
clang/l
https://github.com/kazutakahirata created
https://github.com/llvm/llvm-project/pull/123284
Note that PointerUnion::dyn_cast has been soft deprecated in
PointerUnion.h:
// FIXME: Replace the uses of is(), get() and dyn_cast() with
//isa, cast and the llvm::dyn_cast
Literal migration
https://github.com/kazutakahirata created
https://github.com/llvm/llvm-project/pull/123283
Note that PointerUnion::dyn_cast has been soft deprecated in
PointerUnion.h:
// FIXME: Replace the uses of is(), get() and dyn_cast() with
//isa, cast and the llvm::dyn_cast
Literal migration
https://github.com/kazutakahirata closed
https://github.com/llvm/llvm-project/pull/123158
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/kazutakahirata closed
https://github.com/llvm/llvm-project/pull/123157
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/kazutakahirata closed
https://github.com/llvm/llvm-project/pull/123156
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/kazutakahirata created
https://github.com/llvm/llvm-project/pull/123158
Note that PointerUnion::dyn_cast has been soft deprecated in
PointerUnion.h:
// FIXME: Replace the uses of is(), get() and dyn_cast() with
//isa, cast and the llvm::dyn_cast
Literal migration
https://github.com/kazutakahirata created
https://github.com/llvm/llvm-project/pull/123157
Note that PointerUnion::dyn_cast has been soft deprecated in
PointerUnion.h:
// FIXME: Replace the uses of is(), get() and dyn_cast() with
//isa, cast and the llvm::dyn_cast
Literal migration
https://github.com/kazutakahirata created
https://github.com/llvm/llvm-project/pull/123156
Note that PointerUnion::dyn_cast has been soft deprecated in
PointerUnion.h:
// FIXME: Replace the uses of is(), get() and dyn_cast() with
//isa, cast and the llvm::dyn_cast
Literal migration
Author: Kazu Hirata
Date: 2025-01-15T08:52:53-08:00
New Revision: 1c5f87486aabd0eed2b41d32fc499700e4471f11
URL:
https://github.com/llvm/llvm-project/commit/1c5f87486aabd0eed2b41d32fc499700e4471f11
DIFF:
https://github.com/llvm/llvm-project/commit/1c5f87486aabd0eed2b41d32fc499700e4471f11.diff
L
https://github.com/kazutakahirata closed
https://github.com/llvm/llvm-project/pull/123014
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/kazutakahirata closed
https://github.com/llvm/llvm-project/pull/123013
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/kazutakahirata closed
https://github.com/llvm/llvm-project/pull/123012
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/kazutakahirata created
https://github.com/llvm/llvm-project/pull/123014
Note that PointerUnion::dyn_cast has been soft deprecated in
PointerUnion.h:
// FIXME: Replace the uses of is(), get() and dyn_cast() with
//isa, cast and the llvm::dyn_cast
Literal migration
https://github.com/kazutakahirata created
https://github.com/llvm/llvm-project/pull/123013
Note that PointerUnion::dyn_cast has been soft deprecated in
PointerUnion.h:
// FIXME: Replace the uses of is(), get() and dyn_cast() with
//isa, cast and the llvm::dyn_cast
Literal migration
https://github.com/kazutakahirata created
https://github.com/llvm/llvm-project/pull/123012
Note that PointerUnion::dyn_cast has been soft deprecated in
PointerUnion.h:
// FIXME: Replace the uses of is(), get() and dyn_cast() with
//isa, cast and the llvm::dyn_cast
Literal migration
https://github.com/kazutakahirata updated
https://github.com/llvm/llvm-project/pull/122856
>From 492cea234d3d7b2a017d1e926272e95bf5fbfefc Mon Sep 17 00:00:00 2001
From: Kazu Hirata
Date: Mon, 13 Jan 2025 12:16:18 -0800
Subject: [PATCH 1/2] [StaticAnalyzer] Migrate away from PointerUnion::dyn_ca
kazutakahirata wrote:
> You are still using dyn_cast_if_present :)
Sorry about that. Fixed.
https://github.com/llvm/llvm-project/pull/122854
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-
https://github.com/kazutakahirata updated
https://github.com/llvm/llvm-project/pull/122854
>From 4b3e0285a506072869452e2d422f3aff494517db Mon Sep 17 00:00:00 2001
From: Kazu Hirata
Date: Mon, 13 Jan 2025 12:04:16 -0800
Subject: [PATCH 1/2] [AST] Migrate away from PointerUnion::dyn_cast (NFC)
N
kazutakahirata wrote:
> This one also uses dyn_cast_if_present.
Sorry about that. Fixed.
https://github.com/llvm/llvm-project/pull/122856
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-comm
https://github.com/kazutakahirata created
https://github.com/llvm/llvm-project/pull/122858
None
>From 227e7f718acbef18a4b5e93cc6ea8cc0b2249062 Mon Sep 17 00:00:00 2001
From: Kazu Hirata
Date: Mon, 13 Jan 2025 21:08:39 -0800
Subject: [PATCH] [AST] Avoid repeated map lookups (NFC)
---
clang/li
https://github.com/kazutakahirata created
https://github.com/llvm/llvm-project/pull/122856
Note that PointerUnion::dyn_cast has been soft deprecated in
PointerUnion.h:
// FIXME: Replace the uses of is(), get() and dyn_cast() with
//isa, cast and the llvm::dyn_cast
Literal migration
https://github.com/kazutakahirata created
https://github.com/llvm/llvm-project/pull/122855
Note that PointerUnion::dyn_cast has been soft deprecated in
PointerUnion.h:
// FIXME: Replace the uses of is(), get() and dyn_cast() with
//isa, cast and the llvm::dyn_cast
Literal migration
https://github.com/kazutakahirata created
https://github.com/llvm/llvm-project/pull/122854
Note that PointerUnion::dyn_cast has been soft deprecated in
PointerUnion.h:
// FIXME: Replace the uses of is(), get() and dyn_cast() with
//isa, cast and the llvm::dyn_cast
Literal migration
https://github.com/kazutakahirata closed
https://github.com/llvm/llvm-project/pull/122778
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/kazutakahirata created
https://github.com/llvm/llvm-project/pull/122778
Note that PointerUnion::dyn_cast has been soft deprecated in
PointerUnion.h:
// FIXME: Replace the uses of is(), get() and dyn_cast() with
//isa, cast and the llvm::dyn_cast
Literal migration
https://github.com/kazutakahirata closed
https://github.com/llvm/llvm-project/pull/122652
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/kazutakahirata closed
https://github.com/llvm/llvm-project/pull/122651
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/kazutakahirata created
https://github.com/llvm/llvm-project/pull/122651
Note that PointerUnion::dyn_cast has been soft deprecated in
PointerUnion.h:
// FIXME: Replace the uses of is(), get() and dyn_cast() with
//isa, cast and the llvm::dyn_cast
Literal migration
https://github.com/kazutakahirata created
https://github.com/llvm/llvm-project/pull/122653
Note that PointerUnion::dyn_cast has been soft deprecated in
PointerUnion.h:
// FIXME: Replace the uses of is(), get() and dyn_cast() with
//isa, cast and the llvm::dyn_cast
Literal migration
https://github.com/kazutakahirata created
https://github.com/llvm/llvm-project/pull/122652
Note that PointerUnion::dyn_cast has been soft deprecated in
PointerUnion.h:
// FIXME: Replace the uses of is(), get() and dyn_cast() with
//isa, cast and the llvm::dyn_cast
Literal migration
https://github.com/kazutakahirata closed
https://github.com/llvm/llvm-project/pull/122625
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/kazutakahirata created
https://github.com/llvm/llvm-project/pull/122625
None
>From b9a6a99e421170fbc1fb8c6641a83d21dfa0076c Mon Sep 17 00:00:00 2001
From: Kazu Hirata
Date: Sat, 11 Jan 2025 17:53:36 -0800
Subject: [PATCH] [Driver] Avoid repeated map lookups (NFC)
---
clang
https://github.com/kazutakahirata closed
https://github.com/llvm/llvm-project/pull/122588
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/kazutakahirata created
https://github.com/llvm/llvm-project/pull/122588
None
>From 7b2b5230116779c07db74056eba6618fdea7f910 Mon Sep 17 00:00:00 2001
From: Kazu Hirata
Date: Sat, 11 Jan 2025 01:11:22 -0800
Subject: [PATCH] [Sema] Avoid repeated hash lookups (NFC)
---
clang/
Author: Kazu Hirata
Date: 2025-01-11T00:11:42-08:00
New Revision: a3e62d849f07d1e55e6d15465f4f3842ff4b3717
URL:
https://github.com/llvm/llvm-project/commit/a3e62d849f07d1e55e6d15465f4f3842ff4b3717
DIFF:
https://github.com/llvm/llvm-project/commit/a3e62d849f07d1e55e6d15465f4f3842ff4b3717.diff
L
https://github.com/kazutakahirata closed
https://github.com/llvm/llvm-project/pull/120872
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/kazutakahirata created
https://github.com/llvm/llvm-project/pull/120872
Note that PointerUnion::{is,get} have been soft deprecated in
PointerUnion.h:
// FIXME: Replace the uses of is(), get() and dyn_cast() with
//isa, cast and the llvm::dyn_cast
>From 74f40fd73
https://github.com/kazutakahirata closed
https://github.com/llvm/llvm-project/pull/120844
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/kazutakahirata created
https://github.com/llvm/llvm-project/pull/120844
Note that PointerUnion::get has been soft deprecated in
PointerUnion.h:
// FIXME: Replace the uses of is(), get() and dyn_cast() with
//isa, cast and the llvm::dyn_cast
I'm not touching Point
https://github.com/kazutakahirata closed
https://github.com/llvm/llvm-project/pull/120829
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/kazutakahirata created
https://github.com/llvm/llvm-project/pull/120829
Note that PointerUnion::{is,get} have been soft deprecated in
PointerUnion.h:
// FIXME: Replace the uses of is(), get() and dyn_cast() with
//isa, cast and the llvm::dyn_cast
I'm moving the d
kazutakahirata wrote:
> AFAICT this is happening at each place that includes the file, e.g. also if
> you build AddressSanitizer. Not sure what the best way forward here is as
> this is not related to TypeSanitizer, but seems to impact all sanitizers?
I just posted https://github.com/llvm/llvm
kazutakahirata wrote:
@fhahn I'm getting:
```
compiler-rt/lib/tysan/../sanitizer_common/sanitizer_platform_limits_posix.h:604:3:
error: anonymous structs are a GNU extension [-Werror,-Wgnu-anonymous-struct]
struct {
^
1 error generated.
```
while compiling `tyscan.cpp`. Is there any way y
https://github.com/kazutakahirata closed
https://github.com/llvm/llvm-project/pull/119949
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/kazutakahirata created
https://github.com/llvm/llvm-project/pull/119949
Note that PointerUnion::get has been soft deprecated in
PointerUnion.h:
// FIXME: Replace the uses of is(), get() and dyn_cast() with
//isa, cast and the llvm::dyn_cast
>From 07399e5edcbd8ac
https://github.com/kazutakahirata closed
https://github.com/llvm/llvm-project/pull/119724
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
kazutakahirata wrote:
@nikic Please take a look at the revised patch. Thanks!
https://github.com/llvm/llvm-project/pull/119724
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -486,10 +486,10 @@ enum class TemplateSubstitutionKind : char {
const Decl *D = I->first;
llvm::PointerUnion &Stored =
newScope->LocalDecls[D];
-if (I->second.is()) {
- Stored = I->second.get();
+if (isa(I->second)) {
+
https://github.com/kazutakahirata updated
https://github.com/llvm/llvm-project/pull/119724
>From 6fc978bce4321bb24ade49f2f6fde0c7ccd0002b Mon Sep 17 00:00:00 2001
From: Kazu Hirata
Date: Thu, 12 Dec 2024 09:06:22 -0800
Subject: [PATCH 1/2] [clang] Migrate away from PointerUnion::{is,get} (NFC)
https://github.com/kazutakahirata created
https://github.com/llvm/llvm-project/pull/119724
Note that PointerUnion::{is,get} have been soft deprecated in
PointerUnion.h:
// FIXME: Replace the uses of is(), get() and dyn_cast() with
//isa, cast and the llvm::dyn_cast
I'm not touching
https://github.com/kazutakahirata closed
https://github.com/llvm/llvm-project/pull/119673
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/kazutakahirata created
https://github.com/llvm/llvm-project/pull/119673
Note that PointerUnion::{is,get} have been soft deprecated in
PointerUnion.h:
// FIXME: Replace the uses of is(), get() and dyn_cast() with
//isa, cast and the llvm::dyn_cast
I'm not touching
https://github.com/kazutakahirata closed
https://github.com/llvm/llvm-project/pull/119654
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/kazutakahirata created
https://github.com/llvm/llvm-project/pull/119654
Note that PointerUnion::{is,get} have been soft deprecated in
PointerUnion.h:
// FIXME: Replace the uses of is(), get() and dyn_cast() with
//isa, cast and the llvm::dyn_cast
I'm not touching
https://github.com/kazutakahirata closed
https://github.com/llvm/llvm-project/pull/119523
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/kazutakahirata edited
https://github.com/llvm/llvm-project/pull/119523
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/kazutakahirata closed
https://github.com/llvm/llvm-project/pull/118948
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/kazutakahirata created
https://github.com/llvm/llvm-project/pull/118948
Note that PointerUnion::{is,get} have been soft deprecated in
PointerUnion.h:
// FIXME: Replace the uses of is(), get() and dyn_cast() with
//isa, cast and the llvm::dyn_cast
I'm not touching
https://github.com/kazutakahirata closed
https://github.com/llvm/llvm-project/pull/118600
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/kazutakahirata closed
https://github.com/llvm/llvm-project/pull/117499
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
kazutakahirata wrote:
I'm going to go conservative for now by including
`clang/Basic/DiagnosticComment.h` instead of `clang/AST/CommentDiagnostic.h`.
We can revisit this and remove `clang/AST/CommentDiagnostic.h` and update
`module.modulemap`.
https://github.com/llvm/llvm-project/pull/117499
https://github.com/kazutakahirata edited
https://github.com/llvm/llvm-project/pull/117499
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/kazutakahirata edited
https://github.com/llvm/llvm-project/pull/117499
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/kazutakahirata updated
https://github.com/llvm/llvm-project/pull/117499
>From e9427756de508dc386a10ee9ee19cc4733a40465 Mon Sep 17 00:00:00 2001
From: Kazu Hirata
Date: Sun, 24 Nov 2024 09:14:54 -0800
Subject: [PATCH 1/2] [AST] Remove clang/AST/CommentDiagnostic.h
Since:
c
https://github.com/kazutakahirata updated
https://github.com/llvm/llvm-project/pull/118600
>From 651f7ab264c5fd2b1fdd740b3d84e2aef4681b4b Mon Sep 17 00:00:00 2001
From: Kazu Hirata
Date: Tue, 3 Dec 2024 13:59:08 -0800
Subject: [PATCH 1/2] [CodeGen] Migrate away from PointerUnion::{is,get} (NFC)
@@ -37,8 +37,8 @@ void ConstantInitFuture::abandon() {
void ConstantInitFuture::installInGlobal(llvm::GlobalVariable *GV) {
assert(Data && "installing null future");
- if (Data.is()) {
-GV->setInitializer(Data.get());
+ if (auto *C = dyn_cast(Data)) {
+GV->setIniti
Author: Kazu Hirata
Date: 2024-12-04T16:03:14-08:00
New Revision: 32b821cab3064ae9a77a0f1d9916a286c7543735
URL:
https://github.com/llvm/llvm-project/commit/32b821cab3064ae9a77a0f1d9916a286c7543735
DIFF:
https://github.com/llvm/llvm-project/commit/32b821cab3064ae9a77a0f1d9916a286c7543735.diff
L
https://github.com/kazutakahirata created
https://github.com/llvm/llvm-project/pull/118600
Note that PointerUnion::{is,get} have been soft deprecated in
PointerUnion.h:
// FIXME: Replace the uses of is(), get() and dyn_cast() with
//isa, cast and the llvm::dyn_cast
I'm not touching
Author: Kazu Hirata
Date: 2024-12-03T23:17:57-08:00
New Revision: 94d6b1cce5bb9449971a027e352385e72b059a3a
URL:
https://github.com/llvm/llvm-project/commit/94d6b1cce5bb9449971a027e352385e72b059a3a
DIFF:
https://github.com/llvm/llvm-project/commit/94d6b1cce5bb9449971a027e352385e72b059a3a.diff
L
https://github.com/kazutakahirata closed
https://github.com/llvm/llvm-project/pull/118421
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/kazutakahirata updated
https://github.com/llvm/llvm-project/pull/118421
>From 45da9c47e9cfb6c24a6a3e0bba89fa25a4bf2a2a Mon Sep 17 00:00:00 2001
From: Kazu Hirata
Date: Wed, 27 Nov 2024 09:15:12 -0800
Subject: [PATCH 1/3] [StaticAnalyzer] Migrate away from PointerUnion::{is,ge
@@ -205,10 +205,10 @@ const NamedDecl *nonloc::PointerToMember::getDecl() const
{
return nullptr;
const NamedDecl *ND = nullptr;
- if (PTMD.is())
-ND = PTMD.get();
+ if (isa(PTMD))
kazutakahirata wrote:
Done.
https://github.com/llvm/llvm-project
@@ -222,23 +222,23 @@ void ExplodedNode::NodeGroup::addNode(ExplodedNode *N,
ExplodedGraph &G) {
GroupStorage &Storage = reinterpret_cast(P);
if (Storage.isNull()) {
Storage = N;
-assert(Storage.is());
+assert(isa(Storage));
return;
}
ExplodedNodeV
@@ -196,13 +196,13 @@ const PointerToMemberData
*BasicValueFactory::accumCXXBase(
const NamedDecl *ND = nullptr;
llvm::ImmutableList BaseSpecList;
- if (PTMDT.isNull() || PTMDT.is()) {
-if (PTMDT.is())
- ND = PTMDT.get();
+ if (PTMDT.isNull() || isa(PTMDT)) {
+
@@ -211,8 +211,8 @@ class MallocSizeofChecker : public
Checker {
continue;
const TypeSourceInfo *TSI = nullptr;
-if (CallRec.CastedExprParent.is()) {
- TSI = CallRec.CastedExprParent.get()
+if (isa(CallRec.CastedExprParent)) {
--
@@ -196,13 +196,13 @@ const PointerToMemberData
*BasicValueFactory::accumCXXBase(
const NamedDecl *ND = nullptr;
llvm::ImmutableList BaseSpecList;
- if (PTMDT.isNull() || PTMDT.is()) {
-if (PTMDT.is())
- ND = PTMDT.get();
+ if (PTMDT.isNull() || isa(PTMDT)) {
+
@@ -1068,10 +1068,10 @@ const VarRegion *MemRegionManager::getVarRegion(const
VarDecl *D,
llvm::PointerUnion V =
getStackOrCaptureRegionForDeclContext(LC, DC, D);
-if (V.is())
- return V.get();
+if (isa(V))
kazutakahirata wrote:
Switch
https://github.com/kazutakahirata updated
https://github.com/llvm/llvm-project/pull/118421
>From 45da9c47e9cfb6c24a6a3e0bba89fa25a4bf2a2a Mon Sep 17 00:00:00 2001
From: Kazu Hirata
Date: Wed, 27 Nov 2024 09:15:12 -0800
Subject: [PATCH 1/2] [StaticAnalyzer] Migrate away from PointerUnion::{is,ge
https://github.com/kazutakahirata created
https://github.com/llvm/llvm-project/pull/118421
Note that PointerUnion::{is,get} have been soft deprecated in
PointerUnion.h:
// FIXME: Replace the uses of is(), get() and dyn_cast() with
//isa, cast and the llvm::dyn_cast
I'm not touching
https://github.com/kazutakahirata closed
https://github.com/llvm/llvm-project/pull/117498
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
kazutakahirata wrote:
@nikic Friendly ping. Thanks!
https://github.com/llvm/llvm-project/pull/117498
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
Author: Kazu Hirata
Date: 2024-11-24T16:37:23-08:00
New Revision: 2a5e3a67a0248db4a6981e343f0033a32ad4a577
URL:
https://github.com/llvm/llvm-project/commit/2a5e3a67a0248db4a6981e343f0033a32ad4a577
DIFF:
https://github.com/llvm/llvm-project/commit/2a5e3a67a0248db4a6981e343f0033a32ad4a577.diff
L
https://github.com/kazutakahirata created
https://github.com/llvm/llvm-project/pull/117499
Since:
commit d076608d58d1ec55016eb747a995511e3a3f72aa
Author: Richard Trieu
Date: Sat Dec 8 05:05:03 2018 +
clang/AST/CommentDiagnostic.h has been forwarding to
clang/Basic/DiagnosticParse.
https://github.com/kazutakahirata created
https://github.com/llvm/llvm-project/pull/117498
Note that PointerUnion::{is,get} have been soft deprecated in
PointerUnion.h:
// FIXME: Replace the uses of is(), get() and dyn_cast() with
//isa, cast and the llvm::dyn_cast
I'm not touching
https://github.com/kazutakahirata closed
https://github.com/llvm/llvm-project/pull/117469
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/kazutakahirata created
https://github.com/llvm/llvm-project/pull/117469
Note that PointerUnion::{is,get} have been soft deprecated in
PointerUnion.h:
// FIXME: Replace the uses of is(), get() and dyn_cast() with
//isa, cast and the llvm::dyn_cast
I'm not touching
Author: Kazu Hirata
Date: 2024-11-23T10:29:11-08:00
New Revision: 14b9ca3f38494bbd03709188b6e73c06ab84cd15
URL:
https://github.com/llvm/llvm-project/commit/14b9ca3f38494bbd03709188b6e73c06ab84cd15
DIFF:
https://github.com/llvm/llvm-project/commit/14b9ca3f38494bbd03709188b6e73c06ab84cd15.diff
L
Author: Kazu Hirata
Date: 2024-11-21T10:27:05-08:00
New Revision: f881a3815a6b58afa64277eee0bb6b91a4dde103
URL:
https://github.com/llvm/llvm-project/commit/f881a3815a6b58afa64277eee0bb6b91a4dde103
DIFF:
https://github.com/llvm/llvm-project/commit/f881a3815a6b58afa64277eee0bb6b91a4dde103.diff
L
https://github.com/kazutakahirata closed
https://github.com/llvm/llvm-project/pull/116496
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/kazutakahirata closed
https://github.com/llvm/llvm-project/pull/116549
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/kazutakahirata edited
https://github.com/llvm/llvm-project/pull/116549
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/kazutakahirata created
https://github.com/llvm/llvm-project/pull/116549
Identified with misc-include-cleaner.
>From a11ea3a089d42b2e11d5a32cc490665f7fd4efbd Mon Sep 17 00:00:00 2001
From: Kazu Hirata
Date: Sun, 17 Nov 2024 09:04:05 -0800
Subject: [PATCH] [AST] Avoid repeate
https://github.com/kazutakahirata closed
https://github.com/llvm/llvm-project/pull/116460
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
kazutakahirata wrote:
> Can you explain what is the perceived benefit of this change? Thanks
Sure.
- We'll have less code.
- We'll have fewer "false positives" from clangd's "unused include" warnings.
The .cpp files are not using anything declared in `ParseDiagnostic.h` because,
after all, `
1 - 100 of 923 matches
Mail list logo