]> granicus.if.org Git - clang/commitdiff
Fix an assortment of doxygen comment issues found by -Wdocumentation.
authorTed Kremenek <kremenek@apple.com>
Wed, 22 Aug 2012 23:50:41 +0000 (23:50 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 22 Aug 2012 23:50:41 +0000 (23:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162412 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/DeclCXX.h
include/clang/AST/Expr.h
include/clang/AST/ExprObjC.h
include/clang/Lex/Preprocessor.h
include/clang/StaticAnalyzer/Core/PathSensitive/Store.h
lib/Analysis/ThreadSafety.cpp
lib/StaticAnalyzer/Core/RegionStore.cpp

index 2d95f038dfd4769cabe0edf64fe948f3918bfd0e..65a0dab5c225a7d6263815aef06c5da62153986a 100644 (file)
@@ -1303,7 +1303,7 @@ public:
 
   /// \brief Function type used by forallBases() as a callback.
   ///
-  /// \param Base the definition of the base class
+  /// \param BaseDefinition the definition of the base class
   ///
   /// \returns true if this base matched the search criteria
   typedef bool ForallBasesCallback(const CXXRecordDecl *BaseDefinition,
index 89c003c8f664b1142219f03e440c5f68c68e8f61..dddace82db94305ef1b871cf788746617e8fe811 100644 (file)
@@ -220,15 +220,6 @@ public:
   /// Reasons why an expression might not be an l-value.
   LValueClassification ClassifyLValue(ASTContext &Ctx) const;
 
-  /// isModifiableLvalue - C99 6.3.2.1: an lvalue that does not have array type,
-  /// does not have an incomplete type, does not have a const-qualified type,
-  /// and if it is a structure or union, does not have any member (including,
-  /// recursively, any member or element of all contained aggregates or unions)
-  /// with a const-qualified type.
-  ///
-  /// \param Loc [in,out] - A source location which *may* be filled
-  /// in with the location of the expression making this a
-  /// non-modifiable lvalue, if specified.
   enum isModifiableLvalueResult {
     MLV_Valid,
     MLV_NotObjectType,
@@ -247,6 +238,15 @@ public:
     MLV_ClassTemporary,
     MLV_ArrayTemporary
   };
+  /// isModifiableLvalue - C99 6.3.2.1: an lvalue that does not have array type,
+  /// does not have an incomplete type, does not have a const-qualified type,
+  /// and if it is a structure or union, does not have any member (including,
+  /// recursively, any member or element of all contained aggregates or unions)
+  /// with a const-qualified type.
+  ///
+  /// \param Loc [in,out] - A source location which *may* be filled
+  /// in with the location of the expression making this a
+  /// non-modifiable lvalue, if specified.
   isModifiableLvalueResult isModifiableLvalue(ASTContext &Ctx,
                                               SourceLocation *Loc = 0) const;
 
index 93a5ada279158acd42552919eba7a1a93f859308..5c48dfebaae7e35b168f2952d765c0cb416b4394 100644 (file)
@@ -1156,10 +1156,8 @@ public:
     return getReceiverKind() == Class || getReceiverKind() == SuperClass;
   }
 
-  /// \brief Returns the receiver of an instance message.
-  ///
-  /// \brief Returns the object expression for an instance message, or
-  /// NULL for a message that is not an instance message.
+  /// \brief Returns the object expression (receiver) for an instance message,
+  /// or null for a message that is not an instance message.
   Expr *getInstanceReceiver() {
     if (getReceiverKind() == Instance)
       return static_cast<Expr *>(getReceiverPointer());
index ca2c59d9b38d00e843d66a7772dedd3ee14ddb4f..c4301b3b696ce564c0ca7e3171dd4be0d58a6806 100644 (file)
@@ -937,7 +937,7 @@ public:
   /// \brief Returns true if the given MacroID location points at the last
   /// token of the macro expansion.
   ///
-  /// \param MacroBegin If non-null and function returns true, it is set to
+  /// \param MacroEnd If non-null and function returns true, it is set to
   /// end location of the macro.
   bool isAtEndOfMacroExpansion(SourceLocation loc,
                                SourceLocation *MacroEnd = 0) const {
index 06cdeb3404e74fc229488860f2fe1fe6f3dce2b2..b0d6e64bef5a2c11d7682e687d546f90a663c843 100644 (file)
@@ -69,11 +69,9 @@ public:
   virtual StoreRef BindDefault(Store store, const MemRegion *R, SVal V);
 
   /// \brief Create a new store with the specified binding removed.
-  ///
-  /// \brief \param ST the original store, that is the basis for the new store.
-  ///
-  /// \brief \param L the location whose binding should be removed.
-  virtual StoreRef killBinding(Store St, Loc L) = 0;
+  /// \param ST the original store, that is the basis for the new store.
+  /// \param L the location whose binding should be removed.
+  virtual StoreRef killBinding(Store ST, Loc L) = 0;
 
   /// \brief Create a new store that binds a value to a compound literal.
   ///
index 5954682579d803dcdc82a9cbcd2e8877624915d4..277359ad637772236f1adb846ebdfeeb39a01812 100644 (file)
@@ -70,27 +70,27 @@ namespace {
 class SExpr {
 private:
   enum ExprOp {
-    EOP_Nop,      //< No-op
-    EOP_Wildcard, //< Matches anything.
-    EOP_This,     //< This keyword.
-    EOP_NVar,     //< Named variable.
-    EOP_LVar,     //< Local variable.
-    EOP_Dot,      //< Field access
-    EOP_Call,     //< Function call
-    EOP_MCall,    //< Method call
-    EOP_Index,    //< Array index
-    EOP_Unary,    //< Unary operation
-    EOP_Binary,   //< Binary operation
-    EOP_Unknown   //< Catchall for everything else
+    EOP_Nop,      ///< No-op
+    EOP_Wildcard, ///< Matches anything.
+    EOP_This,     ///< This keyword.
+    EOP_NVar,     ///< Named variable.
+    EOP_LVar,     ///< Local variable.
+    EOP_Dot,      ///< Field access
+    EOP_Call,     ///< Function call
+    EOP_MCall,    ///< Method call
+    EOP_Index,    ///< Array index
+    EOP_Unary,    ///< Unary operation
+    EOP_Binary,   ///< Binary operation
+    EOP_Unknown   ///< Catchall for everything else
   };
 
 
   class SExprNode {
    private:
-    unsigned char  Op;     //< Opcode of the root node
-    unsigned char  Flags;  //< Additional opcode-specific data
-    unsigned short Sz;     //< Number of child nodes
-    const void*    Data;   //< Additional opcode-specific data
+    unsigned char  Op;     ///< Opcode of the root node
+    unsigned char  Flags;  ///< Additional opcode-specific data
+    unsigned short Sz;     ///< Number of child nodes
+    const void*    Data;   ///< Additional opcode-specific data
 
    public:
     SExprNode(ExprOp O, unsigned F, const void* D)
@@ -1385,7 +1385,7 @@ void ThreadSafetyAnalyzer::addLock(FactSet &FSet, const SExpr &Mutex,
 
 
 /// \brief Remove a lock from the lockset, warning if the lock is not there.
-/// \param LockExp The lock expression corresponding to the lock to be removed
+/// \param Mutex The lock expression corresponding to the lock to be removed
 /// \param UnlockLoc The source location of the unlock (only used in error msg)
 void ThreadSafetyAnalyzer::removeLock(FactSet &FSet,
                                       const SExpr &Mutex,
@@ -1973,8 +1973,8 @@ void BuildLockset::VisitDeclStmt(DeclStmt *S) {
 /// are the same. In the event of a difference, we use the intersection of these
 /// two locksets at the start of D.
 ///
-/// \param LSet1 The first lockset.
-/// \param LSet2 The second lockset.
+/// \param FSet1 The first lockset.
+/// \param FSet2 The second lockset.
 /// \param JoinLoc The location of the join point for error reporting
 /// \param LEK1 The error message to report if a mutex is missing from LSet1
 /// \param LEK2 The error message to report if a mutex is missing from Lset2
index 8af92ed8825275b53b9ec4d1c4f035ae29935cb9..b3cf2080006eaef7365650f3c1479c8b602628c3 100644 (file)
@@ -293,11 +293,9 @@ public: // Part of public interface to class.
   StoreRef BindAggregate(Store store, const TypedRegion *R, SVal DefaultVal);
 
   /// \brief Create a new store with the specified binding removed.
-  ///
-  /// \brief \param ST the original store, that is the basis for the new store.
-  ///
-  /// \brief \param L the location whose binding should be removed.
-  StoreRef killBinding(Store ST, Loc LV);
+  /// \param ST the original store, that is the basis for the new store.
+  /// \param L the location whose binding should be removed.
+  StoreRef killBinding(Store ST, Loc L);
 
   void incrementReferenceCount(Store store) {
     GetRegionBindings(store).manualRetain();