...as that is apparently what MSVC does
Details
Diff Detail
Event Timeline
| include/clang/AST/ASTConsumer.h | ||
|---|---|---|
| 57–62 | I'm pretty sure we can relax HandleInlineMethodDefinition to take a FunctionDecl and then we don't need the extra AST consumer callback. | |
| lib/Parse/ParseCXXInlineMethods.cpp | ||
| 567–568 | I'd check for the friend specification here rather than asserting later. There probably are or will eventually be ways to sneak a non-friend, non-method FunctionDecl into a class context. | |
| include/clang/AST/ASTConsumer.h | ||
|---|---|---|
| 57–62 | ...and then also rename it from HandleInlineMethodDefinition to, say,HandleInlineFunctionDefinition? Or better stick with the (then no longer accurate) name? | |
| include/clang/AST/ASTConsumer.h | ||
|---|---|---|
| 57–62 | Renaming would be good if you're up for it. I have a feeling that nobody outside of Clang is overriding this ASTConsumer callback. It's purpose is very specific to dllexport. | |
I'm pretty sure we can relax HandleInlineMethodDefinition to take a FunctionDecl and then we don't need the extra AST consumer callback.