mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-26 00:36:06 +00:00
Fix a bunch of -Wdocumentation warnings.
llvm-svn: 162452
This commit is contained in:
parent
7e6347402d
commit
adba9be7c5
@ -3272,7 +3272,7 @@ enum CXCommentKind {
|
||||
* \brief A \\param or \\arg command that describes the function parameter
|
||||
* (name, passing direction, description).
|
||||
*
|
||||
* \brief For example: \\param [in] ParamName description.
|
||||
* For example: \\param [in] ParamName description.
|
||||
*/
|
||||
CXComment_ParamCommand = 7,
|
||||
|
||||
@ -3280,7 +3280,7 @@ enum CXCommentKind {
|
||||
* \brief A \\tparam command that describes a template parameter (name and
|
||||
* description).
|
||||
*
|
||||
* \brief For example: \\tparam T description.
|
||||
* For example: \\tparam T description.
|
||||
*/
|
||||
CXComment_TParamCommand = 8,
|
||||
|
||||
@ -3379,7 +3379,7 @@ CINDEX_LINKAGE unsigned clang_Comment_getNumChildren(CXComment Comment);
|
||||
/**
|
||||
* \param Comment AST node of any kind.
|
||||
*
|
||||
* \param ArgIdx argument index (zero-based).
|
||||
* \param ChildIdx child index (zero-based).
|
||||
*
|
||||
* \returns the specified child of the AST node.
|
||||
*/
|
||||
|
@ -1886,9 +1886,9 @@ public:
|
||||
/// \brief Add a deallocation callback that will be invoked when the
|
||||
/// ASTContext is destroyed.
|
||||
///
|
||||
/// \brief Callback A callback function that will be invoked on destruction.
|
||||
/// \param Callback A callback function that will be invoked on destruction.
|
||||
///
|
||||
/// \brief Data Pointer data that will be provided to the callback function
|
||||
/// \param Data Pointer data that will be provided to the callback function
|
||||
/// when it is called.
|
||||
void AddDeallocation(void (*Callback)(void*), void *Data);
|
||||
|
||||
|
@ -424,12 +424,12 @@ public:
|
||||
|
||||
/// \brief Produce a unique representation of the given statement.
|
||||
///
|
||||
/// \brief ID once the profiling operation is complete, will contain
|
||||
/// \param ID once the profiling operation is complete, will contain
|
||||
/// the unique representation of the given statement.
|
||||
///
|
||||
/// \brief Context the AST context in which the statement resides
|
||||
/// \param Context the AST context in which the statement resides
|
||||
///
|
||||
/// \brief Canonical whether the profile should be based on the canonical
|
||||
/// \param Canonical whether the profile should be based on the canonical
|
||||
/// representation of this statement (e.g., where non-type template
|
||||
/// parameters are identified by index/level rather than their
|
||||
/// declaration pointers) or the exact representation of the statement as
|
||||
|
@ -250,11 +250,11 @@ inline UnqualTypeLoc TypeLoc::getUnqualifiedLoc() const {
|
||||
/// to a particular Type subclass. It is accepted for a single
|
||||
/// TypeLoc class to correspond to multiple Type classes.
|
||||
///
|
||||
/// \param Base a class from which to derive
|
||||
/// \param Derived the class deriving from this one
|
||||
/// \param TypeClass the concrete Type subclass associated with this
|
||||
/// \tparam Base a class from which to derive
|
||||
/// \tparam Derived the class deriving from this one
|
||||
/// \tparam TypeClass the concrete Type subclass associated with this
|
||||
/// location type
|
||||
/// \param LocalData the structure type of local location data for
|
||||
/// \tparam LocalData the structure type of local location data for
|
||||
/// this type
|
||||
///
|
||||
/// sizeof(LocalData) needs to be a multiple of sizeof(void*) or
|
||||
|
@ -679,7 +679,7 @@ public:
|
||||
/// (e.g. because the PCH could not be loaded), this accepts the ASTUnit
|
||||
/// mainly to allow the caller to see the diagnostics.
|
||||
/// This will only receive an ASTUnit if a new one was created. If an already
|
||||
/// created ASTUnit was passed in \param Unit then the caller can check that.
|
||||
/// created ASTUnit was passed in \p Unit then the caller can check that.
|
||||
///
|
||||
static ASTUnit *LoadFromCompilerInvocationAction(CompilerInvocation *CI,
|
||||
IntrusiveRefCntPtr<DiagnosticsEngine> Diags,
|
||||
|
@ -124,7 +124,7 @@ public:
|
||||
/// \param Ranges The underlined ranges for this code snippet.
|
||||
/// \param FixItHints The FixIt hints active for this diagnostic.
|
||||
/// \param SM The SourceManager; will be null if the diagnostic came from the
|
||||
/// frontend, thus \param Loc will be invalid.
|
||||
/// frontend, thus \p Loc will be invalid.
|
||||
void emitDiagnostic(SourceLocation Loc, DiagnosticsEngine::Level Level,
|
||||
StringRef Message, ArrayRef<CharSourceRange> Ranges,
|
||||
ArrayRef<FixItHint> FixItHints,
|
||||
|
@ -278,8 +278,6 @@ public:
|
||||
/// \brief Given a location any where in a source buffer, find the location
|
||||
/// that corresponds to the beginning of the token in which the original
|
||||
/// source location lands.
|
||||
///
|
||||
/// \param Loc
|
||||
static SourceLocation GetBeginningOfToken(SourceLocation Loc,
|
||||
const SourceManager &SM,
|
||||
const LangOptions &LangOpts);
|
||||
@ -324,7 +322,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.
|
||||
static bool isAtEndOfMacroExpansion(SourceLocation loc,
|
||||
const SourceManager &SM,
|
||||
|
@ -1111,10 +1111,10 @@ public:
|
||||
/// from a macro as multiple tokens, which need to be glued together. This
|
||||
/// occurs for code like:
|
||||
/// \code
|
||||
/// \#define FOO <a/b.h>
|
||||
/// \#define FOO <x/y.h>
|
||||
/// \#include FOO
|
||||
/// \endcode
|
||||
/// because in this case, "<a/b.h>" is returned as 7 tokens, not one.
|
||||
/// because in this case, "<x/y.h>" is returned as 7 tokens, not one.
|
||||
///
|
||||
/// This code concatenates and consumes tokens up to the '>' token. It
|
||||
/// returns false if the > was found, otherwise it returns true if it finds
|
||||
|
@ -4661,8 +4661,6 @@ public:
|
||||
|
||||
/// \brief Parsed an elaborated-type-specifier that refers to a template-id,
|
||||
/// such as \c class T::template apply<U>.
|
||||
///
|
||||
/// \param TUK
|
||||
TypeResult ActOnTagTemplateIdType(TagUseKind TUK,
|
||||
TypeSpecifierType TagSpec,
|
||||
SourceLocation TagLoc,
|
||||
|
@ -665,10 +665,10 @@ protected:
|
||||
/// a new symbolic region will be used.
|
||||
/// \param St The path-sensitive state at this point in the program.
|
||||
/// \param LCtx The location context at this point in the program.
|
||||
CXXConstructorCall(const CXXConstructExpr *CE, const MemRegion *target,
|
||||
CXXConstructorCall(const CXXConstructExpr *CE, const MemRegion *Target,
|
||||
ProgramStateRef St, const LocationContext *LCtx)
|
||||
: AnyFunctionCall(CE, St, LCtx) {
|
||||
Data = target;
|
||||
Data = Target;
|
||||
}
|
||||
|
||||
CXXConstructorCall(const CXXConstructorCall &Other) : AnyFunctionCall(Other){}
|
||||
|
@ -162,8 +162,6 @@ public:
|
||||
/// @param Pred The transition will be generated from the specified Pred node
|
||||
/// to the newly generated node.
|
||||
/// @param Tag The tag to uniquely identify the creation site.
|
||||
/// @param IsSink Mark the new node as sink, which will stop exploration of
|
||||
/// the given path.
|
||||
ExplodedNode *addTransition(ProgramStateRef State,
|
||||
ExplodedNode *Pred,
|
||||
const ProgramPointTag *Tag = 0) {
|
||||
|
@ -222,8 +222,7 @@ public:
|
||||
/// immediately-enclosing context of the cleanup scope. For
|
||||
/// EH cleanups, this is run in a terminate context.
|
||||
///
|
||||
// \param IsForEHCleanup true if this is for an EH cleanup, false
|
||||
/// if for a normal cleanup.
|
||||
// \param flags cleanup kind.
|
||||
virtual void Emit(CodeGenFunction &CGF, Flags flags) = 0;
|
||||
};
|
||||
|
||||
@ -1631,7 +1630,7 @@ public:
|
||||
/// aggregate expression, the aggloc/agglocvolatile arguments indicate where
|
||||
/// the result should be returned.
|
||||
///
|
||||
/// \param IgnoreResult - True if the resulting value isn't used.
|
||||
/// \param ignoreResult True if the resulting value isn't used.
|
||||
RValue EmitAnyExpr(const Expr *E,
|
||||
AggValueSlot aggSlot = AggValueSlot::ignored(),
|
||||
bool ignoreResult = false);
|
||||
|
@ -135,7 +135,7 @@ DiagnosticBuilder Parser::Diag(const Token &Tok, unsigned DiagID) {
|
||||
/// given range.
|
||||
///
|
||||
/// \param Loc The location where we'll emit the diagnostic.
|
||||
/// \param Loc The kind of diagnostic to emit.
|
||||
/// \param DK The kind of diagnostic to emit.
|
||||
/// \param ParenRange Source range enclosing code that should be parenthesized.
|
||||
void Parser::SuggestParentheses(SourceLocation Loc, unsigned DK,
|
||||
SourceRange ParenRange) {
|
||||
|
@ -2190,7 +2190,7 @@ void CheckFormatHandler::EmitFormatDiagnostic(PartialDiagnostic PDiag,
|
||||
/// \brief If the format string is not within the funcion call, emit a note
|
||||
/// so that the function call and string are in diagnostic messages.
|
||||
///
|
||||
/// \param inFunctionCall if true, the format string is within the function
|
||||
/// \param InFunctionCall if true, the format string is within the function
|
||||
/// call and only one diagnostic message will be produced. Otherwise, an
|
||||
/// extra note will be emitted pointing to location of the format string.
|
||||
///
|
||||
@ -2213,7 +2213,7 @@ void CheckFormatHandler::EmitFormatDiagnostic(PartialDiagnostic PDiag,
|
||||
/// \param StringRange some or all of the string to highlight. This is
|
||||
/// templated so it can accept either a CharSourceRange or a SourceRange.
|
||||
///
|
||||
/// \param Fixit optional fix it hint for the format string.
|
||||
/// \param FixIt optional fix it hint for the format string.
|
||||
template<typename Range>
|
||||
void CheckFormatHandler::EmitFormatDiagnostic(Sema &S, bool InFunctionCall,
|
||||
const Expr *ArgumentExpr,
|
||||
|
@ -5044,7 +5044,7 @@ static ObjCInterfaceDecl *GetAssumedMessageSendExprType(Expr *E) {
|
||||
///
|
||||
/// \param S The semantic analysis object.
|
||||
///
|
||||
/// \param S NeedSuperKeyword Whether we need to prefix this completion with
|
||||
/// \param NeedSuperKeyword Whether we need to prefix this completion with
|
||||
/// the "super" keyword. Otherwise, we just need to provide the arguments.
|
||||
///
|
||||
/// \param SelIdents The identifiers in the selector that have already been
|
||||
|
@ -1562,7 +1562,7 @@ class FieldInitializerValidatorCCC : public CorrectionCandidateCallback {
|
||||
///
|
||||
/// @param DesigIdx The index of the current designator.
|
||||
///
|
||||
/// @param DeclType The type of the "current object" (C99 6.7.8p17),
|
||||
/// @param CurrentObjectType The type of the "current object" (C99 6.7.8p17),
|
||||
/// into which the designation in @p DIE should refer.
|
||||
///
|
||||
/// @param NextField If non-NULL and the first designator in @p DIE is
|
||||
|
@ -292,7 +292,7 @@ OpaqueValueExpr *PseudoOpBuilder::capture(Expr *e) {
|
||||
/// operation. This routine is safe against expressions which may
|
||||
/// already be captured.
|
||||
///
|
||||
/// \param Returns the captured expression, which will be the
|
||||
/// \returns the captured expression, which will be the
|
||||
/// same as the input if the input was already captured
|
||||
OpaqueValueExpr *PseudoOpBuilder::captureValueAsResult(Expr *e) {
|
||||
assert(ResultIndex == PseudoObjectExpr::NoResult);
|
||||
@ -617,7 +617,7 @@ ExprResult ObjCPropertyOpBuilder::buildGet() {
|
||||
|
||||
/// Store to an Objective-C property reference.
|
||||
///
|
||||
/// \param bindSetValueAsResult - If true, capture the actual
|
||||
/// \param captureSetValueAsResult If true, capture the actual
|
||||
/// value being set as the value of the property operation.
|
||||
ExprResult ObjCPropertyOpBuilder::buildSet(Expr *op, SourceLocation opcLoc,
|
||||
bool captureSetValueAsResult) {
|
||||
@ -1255,7 +1255,7 @@ ExprResult ObjCSubscriptOpBuilder::buildGet() {
|
||||
/// Store into the container the "op" object at "Index"'ed location
|
||||
/// by building this messaging expression:
|
||||
/// - (void)setObject:(id)object atIndexedSubscript:(NSInteger)index;
|
||||
/// \param bindSetValueAsResult - If true, capture the actual
|
||||
/// \param captureSetValueAsResult If true, capture the actual
|
||||
/// value being set as the value of the property operation.
|
||||
ExprResult ObjCSubscriptOpBuilder::buildSet(Expr *op, SourceLocation opcLoc,
|
||||
bool captureSetValueAsResult) {
|
||||
|
@ -2996,8 +2996,6 @@ DeduceTemplateArgumentByListElement(Sema &S,
|
||||
///
|
||||
/// \param Args the function call arguments
|
||||
///
|
||||
/// \param NumArgs the number of arguments in Args
|
||||
///
|
||||
/// \param Name the name of the function being called. This is only significant
|
||||
/// when the function template is a conversion function template, in which
|
||||
/// case this routine will also perform template argument deduction based on
|
||||
|
@ -145,8 +145,8 @@ RangeComparisonResult CursorVisitor::CompareRegionOfInterest(SourceRange R) {
|
||||
///
|
||||
/// \param Cursor the cursor to visit.
|
||||
///
|
||||
/// \param CheckRegionOfInterest if true, then the caller already checked that
|
||||
/// this cursor is within the region of interest.
|
||||
/// \param CheckedRegionOfInterest if true, then the caller already checked
|
||||
/// that this cursor is within the region of interest.
|
||||
///
|
||||
/// \returns true if the visitation should be aborted, false if it
|
||||
/// should continue.
|
||||
|
Loading…
x
Reference in New Issue
Block a user