[cfe-commits] r38918 - /cfe/cfe/trunk/include/clang/Parse/DeclSpec.h

sabre at cs.uiuc.edu sabre at cs.uiuc.edu
Wed Jul 11 09:25:45 PDT 2007


Author: sabre
Date: Wed Jul 11 11:25:45 2007
New Revision: 38918

URL: http://llvm.org/viewvc/llvm-project?rev=38918&view=rev
Log:
Add accessor for the DeclSpec object.

Modified:
    cfe/cfe/trunk/include/clang/Parse/DeclSpec.h

Modified: cfe/cfe/trunk/include/clang/Parse/DeclSpec.h
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/include/clang/Parse/DeclSpec.h?rev=38918&r1=38917&r2=38918&view=diff

==============================================================================
--- cfe/cfe/trunk/include/clang/Parse/DeclSpec.h (original)
+++ cfe/cfe/trunk/include/clang/Parse/DeclSpec.h Wed Jul 11 11:25:45 2007
@@ -267,6 +267,10 @@
   Declarator(const DeclSpec &ds, TheContext C)
     : DS(ds), Identifier(0), Context(C) {
   }
+
+  /// getDeclSpec - Return the declaration-specifier that this declarator was
+  /// declared with.
+  const DeclSpec &getDeclSpec() const { return DS; }
   
   /// clear - Reset the contents of this Declarator.
   void clear() {





More information about the cfe-commits mailing list