[clang] [clang][Sema] Don't emit 'declared here' note for builtin functions with no decl in source (PR #93394)
Youngsuk Kim via cfe-commits
cfe-commits at lists.llvm.org
Sun May 26 08:28:43 PDT 2024
================
@@ -5,7 +5,7 @@ void similar() { // expected-note {{'similar' declared here}}
if constexpr (similer<>) {} // expected-error {{use of undeclared identifier 'similer'; did you mean 'similar'?}}
}
void a() { if constexpr (__adl_swap<>) {}} // expected-error{{use of undeclared identifier '__adl_swap'; did you mean '__sync_swap'?}} \
- // expected-note {{'__sync_swap' declared here}}
+ // not-expected-note {{'__sync_swap' declared here}}
----------------
JOE1994 wrote:
You are right!
https://github.com/llvm/llvm-project/pull/93394
More information about the cfe-commits
mailing list