[PATCH] D153914: [clang-cl] Enable concatenation of predefined identifiers
Tom Honermann via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 24 13:34:13 PDT 2023
tahonermann added inline comments.
================
Comment at: clang/test/Sema/ms_predefined_expr.cpp:156
+ static_assert(__FUNCTION__ ""_len == 14); // expected-warning{{string literal concatenation of predefined identifier '__FUNCTION__' is a Microsoft extension}}
}
----------------
Here is another case to test. MSVC accepts this.
void test_static_assert() {
static_assert(true, __FUNCTION__);
}
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D153914/new/
https://reviews.llvm.org/D153914
More information about the cfe-commits
mailing list