]> granicus.if.org Git - clang/commitdiff
Allow for vendor prefixes in a list test
authorNathan Lanza <nathan@lanza.io>
Tue, 16 Jul 2019 00:57:50 +0000 (00:57 +0000)
committerNathan Lanza <nathan@lanza.io>
Tue, 16 Jul 2019 00:57:50 +0000 (00:57 +0000)
Summary:
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{{.*}}

Subscribers: fedor.sergeev, cfe-commits

Tags: #clang

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@366159 91177308-0d34-0410-b5e6-96231b3b80d8

test/Preprocessor/init.c

index fce85e05f63f5663c2ec3ee6fea4812b5a23635b..d2d7efc0ae709bd6fa002965b34a73a2e89a296a 100644 (file)
 // 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