[all-commits] [llvm/llvm-project] cddbcd: [flang][preprocessor] Expand some keyword macros i...

Peter Klausler via All-commits all-commits at lists.llvm.org
Fri Jun 28 12:14:45 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cddbcd15a0e6ef59e1cae0a68d000b0c5942ff43
      https://github.com/llvm/llvm-project/commit/cddbcd15a0e6ef59e1cae0a68d000b0c5942ff43
  Author: Peter Klausler <35819229+klausler at users.noreply.github.com>
  Date:   2024-06-28 (Fri, 28 Jun 2024)

  Changed paths:
    M flang/lib/Parser/prescan.cpp
    A flang/test/Preprocessing/kw-in-char.F90

  Log Message:
  -----------
  [flang][preprocessor] Expand some keyword macros in quoted character … (#96987)

…literals

To help port codes from compilers using pre-ANSI C preprocessors, which
didn't care much about context when replacing macros, support the
replacement of keyword macros in quoted character literals when (and
only when) the name of the keyword macro constitutes the entire
significant portion of a free form continuation line. See the new test
case for a motivating example.

Fixes https://github.com/llvm/llvm-project/issues/96781.



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