Rearrange the fields to reduce the size of the classes
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/include/clang/AST/CommentLexer.h | ||
---|---|---|
244 | I'm not a fan of this change to Lexer because it breaks the grouping of fields: VerbatimBlockEndCommandName is no longer next to State. There is only ever one Lexer class instance anyway, so any memory savings are not important I think. |
clang/include/clang/AST/CommentLexer.h | ||
---|---|---|
244 | Fair point, I've fixed that grouping of fields while keeping the smaller size, but if you think its still not worth it, I'll revert that change. |
clang/include/clang/AST/CommentLexer.h | ||
---|---|---|
70 | Could you also swap Length and IntVal? It would be nice to keep Length and TextPtr next to each other. |
Could you also swap Length and IntVal? It would be nice to keep Length and TextPtr next to each other.