[all-commits] [llvm/llvm-project] 0e811d: [flang] Fix handling of space between # and name i...

Peter Klausler via All-commits all-commits at lists.llvm.org
Wed Jan 12 16:02:40 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0e811d3b66ff85c13629d80c483c5d706eb4d15f
      https://github.com/llvm/llvm-project/commit/0e811d3b66ff85c13629d80c483c5d706eb4d15f
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2022-01-12 (Wed, 12 Jan 2022)

  Changed paths:
    M flang/lib/Parser/preprocessor.cpp
    A flang/test/Preprocessing/pp045.F
    A flang/test/Preprocessing/pp131.F90

  Log Message:
  -----------
  [flang] Fix handling of space between # and name in preprocessor stringification

When preprocessing "# ARG" in function-like macro expansion,
the preprocessor needs to pop the previously-pushed '#' token
from the end of the resulting token sequence after detecting the
argument name.  The code to do this was just wrong in a couple of
ways.

Differential Revision: https://reviews.llvm.org/D117148




More information about the All-commits mailing list