[clang] [Clang] Instantiate constexpr function when they are needed. (PR #173537)

Timm Baeder via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 2 01:01:49 PST 2026


================
@@ -215,6 +216,16 @@ struct TypeInfoChars {
   }
 };
 
+/// Interface that allows constant evaluator to call Sema
+/// and mutate the AST.
+struct SemaProxy {
+  virtual ~SemaProxy() = default;
+
+  virtual void
+  InstantiateFunctionDefinition(SourceLocation PointOfInstantiation,
----------------
tbaederr wrote:

https://llvm.org/docs/CodingStandards.html#name-types-functions-variables-and-enumerators-properly

> Function names should be verb phrases (as they represent actions), and command-like function should be imperative. The name should be camel case, and start with a lowercase letter (e.g. openFile() or isFoo()).

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


More information about the cfe-commits mailing list