Documentation cleanup: making \param docs match the code.

llvm-svn: 158982
This commit is contained in:
James Dennett 2012-06-22 10:16:05 +00:00
parent 18348b6218
commit 41725129a4
7 changed files with 20 additions and 31 deletions

View File

@ -6012,15 +6012,16 @@ public:
/// Process the specified property declaration and create decls for the /// Process the specified property declaration and create decls for the
/// setters and getters as needed. /// setters and getters as needed.
/// \param property The property declaration being processed /// \param property The property declaration being processed
/// \param DC The semantic container for the property /// \param CD The semantic container for the property
/// \param redeclaredProperty Declaration for property if redeclared /// \param redeclaredProperty Declaration for property if redeclared
/// in class extension. /// in class extension.
/// \param lexicalDC Container for redeclaredProperty. /// \param lexicalDC Container for redeclaredProperty.
void ProcessPropertyDecl(ObjCPropertyDecl *property, void ProcessPropertyDecl(ObjCPropertyDecl *property,
ObjCContainerDecl *DC, ObjCContainerDecl *CD,
ObjCPropertyDecl *redeclaredProperty = 0, ObjCPropertyDecl *redeclaredProperty = 0,
ObjCContainerDecl *lexicalDC = 0); ObjCContainerDecl *lexicalDC = 0);
void DiagnosePropertyMismatch(ObjCPropertyDecl *Property, void DiagnosePropertyMismatch(ObjCPropertyDecl *Property,
ObjCPropertyDecl *SuperProperty, ObjCPropertyDecl *SuperProperty,
const IdentifierInfo *Name); const IdentifierInfo *Name);

View File

@ -910,8 +910,8 @@ public:
/// ///
/// \param Mod The module whose names should be made visible. /// \param Mod The module whose names should be made visible.
/// ///
/// \param Visibility The level of visibility to give the names in the module. /// \param NameVisibility The level of visibility to give the names in the
/// Visibility can only be increased over time. /// module. Visibility can only be increased over time.
void makeModuleVisible(Module *Mod, void makeModuleVisible(Module *Mod,
Module::NameVisibilityKind NameVisibility); Module::NameVisibilityKind NameVisibility);

View File

@ -49,7 +49,7 @@ public:
virtual ~StoreManager() {} virtual ~StoreManager() {}
/// Return the value bound to specified location in a given state. /// Return the value bound to specified location in a given state.
/// \param[in] state The analysis state. /// \param[in] store The analysis state.
/// \param[in] loc The symbolic memory location. /// \param[in] loc The symbolic memory location.
/// \param[in] T An optional type that provides a hint indicating the /// \param[in] T An optional type that provides a hint indicating the
/// expected type of the returned value. This is used if the value is /// expected type of the returned value. This is used if the value is
@ -58,12 +58,12 @@ public:
virtual SVal getBinding(Store store, Loc loc, QualType T = QualType()) = 0; virtual SVal getBinding(Store store, Loc loc, QualType T = QualType()) = 0;
/// Return a state with the specified value bound to the given location. /// Return a state with the specified value bound to the given location.
/// \param[in] state The analysis state. /// \param[in] store The analysis state.
/// \param[in] loc The symbolic memory location. /// \param[in] loc The symbolic memory location.
/// \param[in] val The value to bind to location \c loc. /// \param[in] val The value to bind to location \c loc.
/// \return A pointer to a ProgramState object that contains the same bindings as /// \return A pointer to a ProgramState object that contains the same
/// \c state with the addition of having the value specified by \c val bound /// bindings as \c state with the addition of having the value specified
/// to the location given for \c loc. /// by \c val bound to the location given for \c loc.
virtual StoreRef Bind(Store store, Loc loc, SVal val) = 0; virtual StoreRef Bind(Store store, Loc loc, SVal val) = 0;
virtual StoreRef BindDefault(Store store, const MemRegion *R, SVal V); virtual StoreRef BindDefault(Store store, const MemRegion *R, SVal V);
@ -176,8 +176,7 @@ public:
/// invalidate additional regions that may have changed based on accessing /// invalidate additional regions that may have changed based on accessing
/// the given regions. Optionally, invalidates non-static globals as well. /// the given regions. Optionally, invalidates non-static globals as well.
/// \param[in] store The initial store /// \param[in] store The initial store
/// \param[in] Begin A pointer to the first region to invalidate. /// \param[in] Regions The regions to invalidate.
/// \param[in] End A pointer just past the last region to invalidate.
/// \param[in] E The current statement being evaluated. Used to conjure /// \param[in] E The current statement being evaluated. Used to conjure
/// symbols to mark the values of invalidated regions. /// symbols to mark the values of invalidated regions.
/// \param[in] Count The current block count. Used to conjure /// \param[in] Count The current block count. Used to conjure
@ -186,7 +185,7 @@ public:
/// accessible. Pass \c NULL if this information will not be used. /// accessible. Pass \c NULL if this information will not be used.
/// \param[in] Call The call expression which will be used to determine which /// \param[in] Call The call expression which will be used to determine which
/// globals should get invalidated. /// globals should get invalidated.
/// \param[in,out] Regions A vector to fill with any regions being /// \param[in,out] Invalidated A vector to fill with any regions being
/// invalidated. This should include any regions explicitly invalidated /// invalidated. This should include any regions explicitly invalidated
/// even if they do not currently have bindings. Pass \c NULL if this /// even if they do not currently have bindings. Pass \c NULL if this
/// information will not be used. /// information will not be used.

View File

@ -196,15 +196,14 @@ public:
/**************************** Array cookies ******************************/ /**************************** Array cookies ******************************/
/// Returns the extra size required in order to store the array /// Returns the extra size required in order to store the array
/// cookie for the given type. May return 0 to indicate that no /// cookie for the given new-expression. May return 0 to indicate that no
/// array cookie is required. /// array cookie is required.
/// ///
/// Several cases are filtered out before this method is called: /// Several cases are filtered out before this method is called:
/// - non-array allocations never need a cookie /// - non-array allocations never need a cookie
/// - calls to \::operator new(size_t, void*) never need a cookie /// - calls to \::operator new(size_t, void*) never need a cookie
/// ///
/// \param ElementType - the allocated type of the expression, /// \param expr - the new-expression being allocated.
/// i.e. the pointee type of the expression result type
virtual CharUnits GetArrayCookieSize(const CXXNewExpr *expr); virtual CharUnits GetArrayCookieSize(const CXXNewExpr *expr);
/// Initialize the array cookie for the given allocation. /// Initialize the array cookie for the given allocation.

View File

@ -1355,7 +1355,7 @@ void Sema::ActOnEndFunctionDeclarator() {
/// ///
/// \param IdLoc The location of the name in the translation unit. /// \param IdLoc The location of the name in the translation unit.
/// ///
/// \param TypoCorrection If true, this routine will attempt typo correction /// \param DoTypoCorrection If true, this routine will attempt typo correction
/// if there is no class with the given name. /// if there is no class with the given name.
/// ///
/// \returns The declaration of the named Objective-C class, or NULL if the /// \returns The declaration of the named Objective-C class, or NULL if the

View File

@ -1637,22 +1637,12 @@ bool Sema::LookupParsedName(LookupResult &R, Scope *S, CXXScopeSpec *SS,
} }
/// @brief Produce a diagnostic describing the ambiguity that resulted /// \brief Produce a diagnostic describing the ambiguity that resulted
/// from name lookup. /// from name lookup.
/// ///
/// @param Result The ambiguous name lookup result. /// \param Result The result of the ambiguous lookup to be diagnosed.
/// ///
/// @param Name The name of the entity that name lookup was /// \returns true
/// searching for.
///
/// @param NameLoc The location of the name within the source code.
///
/// @param LookupRange A source range that provides more
/// source-location information concerning the lookup itself. For
/// example, this range might highlight a nested-name-specifier that
/// precedes the name.
///
/// @returns true
bool Sema::DiagnoseAmbiguousLookup(LookupResult &Result) { bool Sema::DiagnoseAmbiguousLookup(LookupResult &Result) {
assert(Result.isAmbiguous() && "Lookup result must be ambiguous"); assert(Result.isAmbiguous() && "Lookup result must be ambiguous");

View File

@ -4455,13 +4455,13 @@ MarkUsedTemplateParameters(ASTContext &Ctx,
} }
} }
/// \brief Mark the template parameters can be deduced by the given /// \brief Mark which template parameters can be deduced from a given
/// template argument list. /// template argument list.
/// ///
/// \param TemplateArgs the template argument list from which template /// \param TemplateArgs the template argument list from which template
/// parameters will be deduced. /// parameters will be deduced.
/// ///
/// \param Deduced a bit vector whose elements will be set to \c true /// \param Used a bit vector whose elements will be set to \c true
/// to indicate when the corresponding template parameter will be /// to indicate when the corresponding template parameter will be
/// deduced. /// deduced.
void void