[all-commits] [llvm/llvm-project] 31c705: [flang] Accept C-style comments in label fields (#...

Leandro Lupori via All-commits all-commits at lists.llvm.org
Mon Sep 21 10:05:17 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 31c70556b20ad72bcb91525448bd0821c90efc27
      https://github.com/llvm/llvm-project/commit/31c70556b20ad72bcb91525448bd0821c90efc27
  Author: Leandro Lupori <leandro.lupori at linaro.org>
  Date:   2026-09-21 (Mon, 21 Sep 2026)

  Changed paths:
    M flang/docs/Extensions.md
    M flang/include/flang/Parser/options.h
    M flang/lib/Frontend/FrontendAction.cpp
    M flang/lib/Parser/parsing.cpp
    M flang/lib/Parser/prescan.cpp
    M flang/lib/Parser/prescan.h
    A flang/test/Preprocessing/fixed-c-comment01.F
    A flang/test/Preprocessing/fixed-c-comment02.F
    A flang/test/Preprocessing/fixed-c-comment03.f
    A flang/test/Preprocessing/fixed-c-comment04.f
    A flang/test/Preprocessing/fixed-c-comment05.f
    A flang/test/Preprocessing/free-c-comment01.f90
    M flang/tools/bbc/bbc.cpp
    M flang/tools/f18-parse-demo/f18-parse-demo.cpp

  Log Message:
  -----------
  [flang] Accept C-style comments in label fields (#207012)

The main goal of this patch is to make multi-language header files
easier to write and use in fixed format sources. For this reason, and
for simplicity, C-style comments after labels, directives and OpenMP
conditional compilation sentinels are not supported.

Fixes #127426

Assisted-by: Claude Opus 5



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list