This is an archive of the discontinued LLVM Phabricator instance.

[AST][2/4] Move the bit-fields from FunctionDecl and CXXConstructorDecl into DeclContext
ClosedPublic

Authored by bricci on Jul 24 2018, 7:53 AM.

Diff Detail

Repository
rC Clang

Event Timeline

bricci created this revision.Jul 24 2018, 7:53 AM
bricci edited the summary of this revision. (Show Details)Jul 24 2018, 7:58 AM
bricci edited the summary of this revision. (Show Details)Jul 24 2018, 8:03 AM

Anotherone in need of clang-format, otherwise seems alright to me.

include/clang/AST/Decl.h
1809

I'm not sure I see the value of these. FunctiondeclBits is littered around here a bit, so I don't think these additional ones have all that much value. At least the MultiVersion case actually doesn't do anything but call these.

2033

Newline.

bricci updated this revision to Diff 157289.Jul 25 2018, 9:53 AM
bricci marked 2 inline comments as done.
  • ran clang-format on the changes
  • removed the unnecessary setPureImpl, isMultiVersionImpl and setMultiVersionImpl. However unfortunately I think that isDeletedImpl has to stay because ASTDeclWriter::VisitFunctionDecl need to access this bit but we do not want to make ASTDeclWriter a friend of FunctionDeclBitfields just for this. FWIW I have renamed it to isDeletedBit...
bricci updated this revision to Diff 158501.Aug 1 2018, 4:25 AM

rebased after the great whitespace trimming

erichkeane accepted this revision.Aug 1 2018, 10:54 AM
This revision is now accepted and ready to land.Aug 1 2018, 10:54 AM
This revision was automatically updated to reflect the committed changes.