[PATCH] D63048: Update __VERSION__ to remove the hardcoded 4.2.1 version

Sylvestre Ledru via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Jun 8 11:47:12 PDT 2019


sylvestre.ledru marked an inline comment as done.
sylvestre.ledru added inline comments.


================
Comment at: lib/Frontend/InitPreprocessor.cpp:610
+  Builder.defineMacro("__VERSION__", "\"" CLANG_VERSION_STRING
+                      " Compatible " + Twine(getClangFullCPPVersion()) +
+                      "\"");
----------------
lebedev.ri wrote:
> So how does the entire `__VERSION__` macro looks like now?
```
#define __VERSION__ "9.0.0 Compatible Clang 9.0.0 (trunk 362877)"

```
instead of

```
#define __VERSION__ "4.2.1 Compatible Clang 9.0.0 (trunk 362877)"
```



```
clang -dM -E -xc - < /dev/null 
```
to see it


Repository:
  rC Clang

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D63048/new/

https://reviews.llvm.org/D63048





More information about the cfe-commits mailing list