[PATCH] D64772: Allow for vendor prefixes in a list test

Nathan Lanza via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 15 14:35:41 PDT 2019


lanza created this revision.
Herald added subscribers: cfe-commits, fedor.sergeev.
Herald added a project: clang.

Preprocessor/init.c contains a line that explicitly checks for the
string

__VERSION__ "Clang{{.*}}

It's valid to have a toolchain configured to emit a vendor prefix
before the word Clang. e.g.

__VERSION__ "Vendor Clang{{.*}}


Repository:
  rC Clang

https://reviews.llvm.org/D64772

Files:
  test/Preprocessor/init.c


Index: test/Preprocessor/init.c
===================================================================
--- test/Preprocessor/init.c
+++ test/Preprocessor/init.c
@@ -8169,7 +8169,7 @@
 // SPARC:#define __UINT_LEAST8_MAX__ 255
 // SPARC:#define __UINT_LEAST8_TYPE__ unsigned char
 // SPARC:#define __USER_LABEL_PREFIX__
-// SPARC:#define __VERSION__ "Clang{{.*}}
+// SPARC:#define __VERSION__ "{{.*}}Clang{{.*}}
 // SPARC:#define __WCHAR_MAX__ 2147483647
 // SPARC:#define __WCHAR_TYPE__ int
 // SPARC:#define __WCHAR_WIDTH__ 32


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64772.209958.patch
Type: text/x-patch
Size: 524 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190715/003a439f/attachment-0001.bin>


More information about the cfe-commits mailing list