================
@@ -1140,6 +1143,152 @@ static bool ProcessFormatStringLiteral(const Expr 
*FormatExpr,
   return false;
 }
 
+static std::optional<int> getPathMaxValue(const ASTContext &Ctx) {
+  if (Ctx.getTargetInfo().getTriple().isOSGlibc())
+    return {4096};
----------------
ColinKinloch wrote:

Is there some trivial way to evaluate a macro I'm missing? Do you mean to 
traverse the AST context to get an expression to evaluate?
Or do you mean using the `evaluateSimpleMacroAtLocation` function?

https://github.com/llvm/llvm-project/pull/177286
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to