AFAIK this is just used to suppress warnings, so ignore it altogether.
Details
Diff Detail
- Repository
 - rG LLVM Github Monorepo
 
Event Timeline
| clang/test/AST/Interp/literals.cpp | ||
|---|---|---|
| 864–881 | It's weird that the above two statements warn about using __FUNCTION__ and the return statement doesn't.  | |
| clang/test/AST/Interp/literals.cpp | ||
|---|---|---|
| 864–881 | Aren't they warning about it being 'unused'? If so, the 'return' uses them...  | |
| clang/test/AST/Interp/literals.cpp | ||
|---|---|---|
| 864–881 | Right, my message wasn't clear but I meant the c++14 extension diagnostic: https://godbolt.org/z/Kso8qv7jh  | |
LGTM
| clang/test/AST/Interp/literals.cpp | ||
|---|---|---|
| 864–881 | That is pretty strange, tbh. Might be worth investigating in a follow-up.  | |
| clang/test/AST/Interp/literals.cpp | ||
|---|---|---|
| 864–881 | Yeah, in CheckConstexprFunctionStmt in SemaDeclCXX.cpp, the return expression is not checked.  | |
It's weird that the above two statements warn about using __FUNCTION__ and the return statement doesn't.