[cfe-commits] r149831 - /cfe/trunk/bindings/python/clang/cindex.py

Tobias Grosser grosser at fim.uni-passau.de
Sun Feb 5 04:15:56 PST 2012


Author: grosser
Date: Sun Feb  5 06:15:56 2012
New Revision: 149831

URL: http://llvm.org/viewvc/llvm-project?rev=149831&view=rev
Log:
[clang.py] Change type -> Type

Names that have corresponding classes in python are commonly started with an
uppercase letter. Let's follow that convention.

Modified:
    cfe/trunk/bindings/python/clang/cindex.py

Modified: cfe/trunk/bindings/python/clang/cindex.py
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/bindings/python/clang/cindex.py?rev=149831&r1=149830&r2=149831&view=diff
==============================================================================
--- cfe/trunk/bindings/python/clang/cindex.py (original)
+++ cfe/trunk/bindings/python/clang/cindex.py Sun Feb  5 06:15:56 2012
@@ -974,8 +974,7 @@
     @property
     def type(self):
         """
-        Retrieve the type (if any) of of the entity pointed at by the
-        cursor.
+        Retrieve the Type (if any) of the entity pointed at by the cursor.
         """
         if not hasattr(self, '_type'):
             self._type = Cursor_type(self)
@@ -985,7 +984,7 @@
     def underlying_typedef_type(self):
         """Return the underlying type of a typedef declaration.
 
-        Returns a type for the typedef this cursor is a declaration for. If
+        Returns a Type for the typedef this cursor is a declaration for. If
         the current cursor is not a typedef, this raises.
         """
         if not hasattr(self, '_underlying_type'):
@@ -998,7 +997,7 @@
     def enum_type(self):
         """Return the integer type of an enum declaration.
 
-        Returns a type corresponding to an integer. If the cursor is not for an
+        Returns a Type corresponding to an integer. If the cursor is not for an
         enum, this raises.
         """
         if not hasattr(self, '_enum_type'):





More information about the cfe-commits mailing list