Skip to content

Commit

Permalink
More whitespace and naming fixup. No functionality change.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@136944 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
Chad Rosier committed Aug 4, 2011
1 parent 844d572 commit dd7fddb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
14 changes: 7 additions & 7 deletions include/clang/AST/ASTContext.h
Expand Up @@ -412,17 +412,17 @@ class ASTContext : public llvm::RefCountedBase<ASTContext> {
/// BitfieldFollowsBitfield - return 'true" if 'FD' is a
/// bitfield which follows the bitfield 'LastFD'.
bool BitfieldFollowsBitfield(const FieldDecl *FD,
const FieldDecl *LastFD) const;
const FieldDecl *LastFD) const;

/// NoneBitfieldFollowsBitfield - return 'true" if 'FD' is not a
/// NonBitfieldFollowsBitfield - return 'true" if 'FD' is not a
/// bitfield which follows the bitfield 'LastFD'.
bool NoneBitfieldFollowsBitfield(const FieldDecl *FD,
const FieldDecl *LastFD) const;
bool NonBitfieldFollowsBitfield(const FieldDecl *FD,
const FieldDecl *LastFD) const;

/// BitfieldFollowsNoneBitfield - return 'true" if 'FD' is a
/// BitfieldFollowsNonBitfield - return 'true" if 'FD' is a
/// bitfield which follows the none bitfield 'LastFD'.
bool BitfieldFollowsNoneBitfield(const FieldDecl *FD,
const FieldDecl *LastFD) const;
bool BitfieldFollowsNonBitfield(const FieldDecl *FD,
const FieldDecl *LastFD) const;

// Access to the set of methods overridden by the given C++ method.
typedef CXXMethodVector::iterator overridden_cxx_method_iterator;
Expand Down
4 changes: 2 additions & 2 deletions lib/AST/ASTContext.cpp
Expand Up @@ -573,13 +573,13 @@ bool ASTContext::BitfieldFollowsBitfield(const FieldDecl *FD,
LastFD->getBitWidth()->EvaluateAsInt(*this).getZExtValue());
}

bool ASTContext::NoneBitfieldFollowsBitfield(const FieldDecl *FD,
bool ASTContext::NonBitfieldFollowsBitfield(const FieldDecl *FD,
const FieldDecl *LastFD) const {
return (!FD->isBitField() && LastFD && LastFD->isBitField() &&
LastFD->getBitWidth()->EvaluateAsInt(*this).getZExtValue());
}

bool ASTContext::BitfieldFollowsNoneBitfield(const FieldDecl *FD,
bool ASTContext::BitfieldFollowsNonBitfield(const FieldDecl *FD,
const FieldDecl *LastFD) const {
return (FD->isBitField() && LastFD && !LastFD->isBitField() &&
FD->getBitWidth()->EvaluateAsInt(*this).getZExtValue());
Expand Down
4 changes: 2 additions & 2 deletions lib/AST/RecordLayoutBuilder.cpp
Expand Up @@ -1270,8 +1270,8 @@ void RecordLayoutBuilder::LayoutFields(const RecordDecl *D) {
continue;
// FIXME. streamline these conditions into a simple one.
else if (Context.BitfieldFollowsBitfield(FD, LastFD) ||
Context.BitfieldFollowsNoneBitfield(FD, LastFD) ||
Context.NoneBitfieldFollowsBitfield(FD, LastFD)) {
Context.BitfieldFollowsNonBitfield(FD, LastFD) ||
Context.NonBitfieldFollowsBitfield(FD, LastFD)) {
// 1) Adjacent bit fields are packed into the same 1-, 2-, or
// 4-byte allocation unit if the integral types are the same
// size and if the next bit field fits into the current
Expand Down

0 comments on commit dd7fddb

Please sign in to comment.