mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-17 17:46:49 +00:00

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 Initial commit didn't check if there was a function name when stepping through expressions ignoring parens. Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D146764
14 lines
281 B
C++
14 lines
281 B
C++
// RUN: %clang_cc1 %s -std=c++17 -fsyntax-only -verify
|
|
// RUN: %clang_cc1 %s -std=c++17 -fsyntax-only -verify -fms-extensions
|
|
|
|
// expected-no-diagnostics
|
|
|
|
struct StringRef {
|
|
StringRef(const char *);
|
|
};
|
|
template <typename T>
|
|
StringRef getTypeName() {
|
|
StringRef s = __func__;
|
|
}
|
|
|