[clang] [clang][Basic] Add helper APIs to get language version codes from LangOptions (PR #163348)

Michael Buch via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 15 02:11:37 PDT 2025


================
@@ -243,3 +243,49 @@ LLVM_DUMP_METHOD void FPOptionsOverride::dump() {
 #include "clang/Basic/FPOptions.def"
   llvm::errs() << "\n";
 }
+
+std::optional<clang::LangOptionsBase::CPlusPlusLangStd>
+LangOptions::getCPlusPlusLangStd() const {
----------------
Michael137 wrote:

Latest commit uses the `LangStandards.def` infrastructure.

Let me know if that's what you had in mind!

https://github.com/llvm/llvm-project/pull/163348


More information about the cfe-commits mailing list