[flang-commits] [flang] [flang][openacc] Make OpenACC block construct parse errors less verbose. (PR #131042)

Peter Klausler via flang-commits flang-commits at lists.llvm.org
Mon Mar 17 14:16:07 PDT 2025


================
@@ -272,19 +272,51 @@ static llvm::raw_ostream::Colors PrefixColor(Severity severity) {
   return llvm::raw_ostream::SAVEDCOLOR;
 }
 
+// TODO: Make these configurable, based on verbosity level.
+const int MAX_CONTEXTS_EMITTED = 2;
----------------
klausler wrote:

These should be `static constexpr`, not externally visible `const`,  and initialized with braces.

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


More information about the flang-commits mailing list