aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbramo Bagnara <abramo.bagnara@gmail.com>2011-07-11 08:43:20 +0000
committerAbramo Bagnara <abramo.bagnara@gmail.com>2011-07-11 08:43:20 +0000
commit386b0075d02837cba066d299adb0bbc6c3ebd2ee (patch)
treed258b052771313d1651f6b613a1c5cb33bdf74db
parent2673c68aa58e277ebc755b71d81aca618cdedbf9 (diff)
Added removeBitWidth method.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134891 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/clang/AST/Decl.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/clang/AST/Decl.h b/include/clang/AST/Decl.h
index 143915b4b5..5691e99e72 100644
--- a/include/clang/AST/Decl.h
+++ b/include/clang/AST/Decl.h
@@ -2039,6 +2039,11 @@ public:
InitializerOrBitWidth.setPointer(BW);
InitializerOrBitWidth.setInt(1);
}
+ /// removeBitWidth - Remove the bitfield width from this member.
+ void removeBitWidth() {
+ assert(isBitField() && "no bit width to remove");
+ InitializerOrBitWidth.setPointer(0);
+ }
/// hasInClassInitializer - Determine whether this member has a C++0x in-class
/// initializer.