[PATCH] D56959: [AST] NFC: Introduce new class GenericSelectionExpr::Association
Bruno Ricci via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 21 08:43:44 PST 2019
riccibruno added a comment.
Some small additional remarks if you are already modifying this class.
================
Comment at: include/clang/AST/Expr.h:5021
unsigned NumAssocs, ResultIndex;
SourceLocation GenericLoc, DefaultLoc, RParenLoc;
----------------
It is possible to stuff one `SourceLocation` in the bit-fields of `Stmt` to save one more pointer.
================
Comment at: include/clang/AST/Expr.h:5113
SourceLocation getBeginLoc() const LLVM_READONLY { return GenericLoc; }
SourceLocation getEndLoc() const LLVM_READONLY { return RParenLoc; }
----------------
I believe these `LLVM_READONLY` are pointless here.
================
Comment at: include/clang/AST/Expr.h:5125
}
friend class ASTStmtReader;
};
----------------
Move this friend decl to the top ?
Repository:
rC Clang
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D56959/new/
https://reviews.llvm.org/D56959
More information about the cfe-commits
mailing list