[all-commits] [llvm/llvm-project] d01c11: [clang] Migrate away from PointerUnion::{is, get} (...
Kazu Hirata via All-commits
all-commits at lists.llvm.org
Thu Dec 12 16:03:43 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d01c11df04ae45a3d5b08e69bb683c760bbddd54
https://github.com/llvm/llvm-project/commit/d01c11df04ae45a3d5b08e69bb683c760bbddd54
Author: Kazu Hirata <kazu at google.com>
Date: 2024-12-12 (Thu, 12 Dec 2024)
Changed paths:
M clang/include/clang/Basic/FileEntry.h
M clang/include/clang/Basic/IdentifierTable.h
M clang/include/clang/Sema/ParsedAttr.h
M clang/include/clang/Sema/SemaConcept.h
M clang/include/clang/Sema/SemaInternal.h
M clang/include/clang/Sema/Template.h
M clang/lib/APINotes/APINotesManager.cpp
M clang/lib/Analysis/ThreadSafetyCommon.cpp
M clang/lib/Basic/FileManager.cpp
M clang/lib/CodeGen/CGOpenMPRuntime.cpp
M clang/lib/Index/IndexDecl.cpp
Log Message:
-----------
[clang] Migrate away from PointerUnion::{is,get} (NFC) (#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<T>, cast<T> and the llvm::dyn_cast<T>
I'm not touching PointerUnion::dyn_cast for now because it's a bit
complicated; we could blindly migrate it to dyn_cast_if_present, but
we should probably use dyn_cast when the operand is known to be
non-null.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list