[clang] [clang][analyzer] Forward CTU-import failure conditions (PR #189064)
Balázs Benics via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 30 05:05:31 PDT 2026
================
@@ -88,6 +88,29 @@ bool hasEqualKnownFields(const llvm::Triple &Lhs, const llvm::Triple &Rhs) {
return true;
}
+/// Returns a human-readable language/dialect description for diagnostics.
+/// Checks flags from highest to lowest standard since they are cumulative
+/// (e.g. CPlusPlus20 implies CPlusPlus17).
+/// This does not cover all possible languages (e.g. Obj-C or flavors of C),
+/// because CTU currently does not differentiate between them.
+std::string getLangDescription(const LangOptions &LO) {
----------------
steakhal wrote:
One more nail into using anon namespaces coffin.
https://github.com/llvm/llvm-project/pull/189064
More information about the cfe-commits
mailing list