[flang-commits] [flang] [flang] Ensure directive sentinels are in cols 1-5 in pp output (PR #119406)

Peter Klausler via flang-commits flang-commits at lists.llvm.org
Mon Dec 16 05:33:37 PST 2024


================
@@ -159,8 +159,9 @@ void Parsing::EmitPreprocessedSource(
         // which signifies a comment (directive) in both source forms.
         inDirective = true;
       }
-      if (inDirective && directive.size() < directiveNameLength &&
-          IsLetter(ch)) {
+      bool inDirectiveSentinel =
----------------
klausler wrote:

Always use braced initialization in the frontend.

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


More information about the flang-commits mailing list