[cfe-commits] r134891 - /cfe/trunk/include/clang/AST/Decl.h
Abramo Bagnara
abramo.bagnara at gmail.com
Mon Jul 11 01:43:20 PDT 2011
Author: abramo
Date: Mon Jul 11 03:43:20 2011
New Revision: 134891
URL: http://llvm.org/viewvc/llvm-project?rev=134891&view=rev
Log:
Added removeBitWidth method.
Modified:
cfe/trunk/include/clang/AST/Decl.h
Modified: cfe/trunk/include/clang/AST/Decl.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/Decl.h?rev=134891&r1=134890&r2=134891&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/Decl.h (original)
+++ cfe/trunk/include/clang/AST/Decl.h Mon Jul 11 03:43:20 2011
@@ -2039,6 +2039,11 @@
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.
More information about the cfe-commits
mailing list