They are harmless and handled by other means, but we used to return false from visitDeclStmt.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/lib/AST/Interp/ByteCodeStmtGen.cpp | ||
---|---|---|
227 | What about other kinds of declarations, such as typedefs or functions? typedef int foo, bar; extern int a(), b(); (and so on) |
clang/lib/AST/Interp/ByteCodeStmtGen.cpp | ||
---|---|---|
227 | That's a good question, I added these now because I ran into them, but my follow-up question would've indeed been "what others are there?" :) |
clang/lib/AST/Interp/ByteCodeStmtGen.cpp | ||
---|---|---|
227 | I was going to say: basically anything reachable from this grammar production: http://eel.is/c++draft/dcl.pre#nt:simple-declaration but then I was surprised to see StaticAssertDecl here. It turns out that any declaration at block scope gets wrapped in a DeclStmt. Well, almost any: https://godbolt.org/z/nMYdYTPEq |
What about other kinds of declarations, such as typedefs or functions?
(and so on)