[PATCH] D146764: [clang] Make predefined expressions string literals under -fms-extensions

Arthur Eubanks via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 23 15:18:37 PDT 2023


aeubanks created this revision.
Herald added a reviewer: shafik.
Herald added a project: All.
aeubanks requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

MSVC makes these string literals [1][2].

[1] https://godbolt.org/z/6vnTzbExx
[2] https://learn.microsoft.com/en-us/cpp/preprocessor/predefined-macros?view=msvc-170

Fixes #114


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D146764

Files:
  clang/include/clang/Testing/TestClangConfig.h
  clang/lib/Sema/SemaExpr.cpp
  clang/test/CodeGen/predefined-expr.c
  clang/test/Sema/ms_predefined_expr.cpp
  clang/unittests/AST/ASTImporterTest.cpp
  clang/unittests/ASTMatchers/ASTMatchersNodeTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D146764.507896.patch
Type: text/x-patch
Size: 7193 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230323/25f142e9/attachment-0001.bin>


More information about the cfe-commits mailing list