[flang-commits] [PATCH] D87650: [flang] Preprocessor's stringifying operator (#x) must replace macros

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Mon Sep 14 16:10:26 PDT 2020


klausler created this revision.
klausler added a reviewer: PeteSteinfeld.
klausler added a project: Flang.
Herald added a reviewer: jdoerfert.
Herald added a reviewer: DavidTruby.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
klausler requested review of this revision.

The actual argument being stringified needs to undergo macro
replacement beforehand so that an assert() macro idiomd can
use __LINE__ in its message.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D87650

Files:
  flang/lib/Parser/parsing.cpp
  flang/lib/Parser/preprocessor.cpp
  flang/lib/Parser/preprocessor.h
  flang/lib/Parser/prescan.cpp
  flang/lib/Parser/prescan.h
  flang/test/Preprocessing/assert.F90

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87650.291723.patch
Type: text/x-patch
Size: 8695 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20200914/ad2790de/attachment.bin>


More information about the flang-commits mailing list