Files
guru/sys-devel/clang-bloomberg-p2996/files/unknown-reflection.patch
Florian Albrechtskirchinger f6700f7900 sys-devel/clang-bloomberg-p2996: new package, add 9999
Adds a monolithic ebuild for the experimental clang fork by Bloomberg
implementing P2996 (Reflection for C++26).

It is cobbled together — somewhat arbitrarily — from the various split
ebuilds in the main portage tree and builds clang, libc++, and
libc++abi, which are installed into
/usr/lib/{clang,llvm}/bloomberg-p2996.

Two patches address compiler warnings that trigger QA notices. The
remaining QA notices are likely false positives.

Signed-off-by: Florian Albrechtskirchinger <falbrechtskirchinger@gmail.com>
2025-07-21 18:25:26 +02:00

13 lines
442 B
Diff

diff --git a/clang/lib/AST/ExprConstantMeta.cpp b/clang/lib/AST/ExprConstantMeta.cpp
index 0808f3124833..bc23ad41dbe5 100644
--- a/clang/lib/AST/ExprConstantMeta.cpp
+++ b/clang/lib/AST/ExprConstantMeta.cpp
@@ -1664,6 +1664,7 @@ StringRef DescriptionOf(APValue RV, bool Granular = true) {
return "an annotation";
}
}
+ llvm_unreachable("unknown reflection");
}
bool DiagnoseReflectionKind(DiagFn Diagnoser, SourceRange Range,