forked from OSchip/llvm-project
clang-tools-extra: Appease PR24881. [-Wdocumentation]
\returns doesn't accept \li, but \parblock \li. llvm-svn: 248080
This commit is contained in:
parent
664798c034
commit
e677e2f545
|
@ -84,7 +84,8 @@ collectReplacementsFromDirectory(const llvm::StringRef Directory,
|
||||||
/// file they target.
|
/// file they target.
|
||||||
/// \param[in] SM SourceManager required for conflict reporting.
|
/// \param[in] SM SourceManager required for conflict reporting.
|
||||||
///
|
///
|
||||||
/// \returns \li true If all changes were applied successfully.
|
/// \returns \parblock
|
||||||
|
/// \li true If all changes were applied successfully.
|
||||||
/// \li false If there were conflicts.
|
/// \li false If there were conflicts.
|
||||||
bool mergeAndDeduplicate(const TUReplacements &TUs,
|
bool mergeAndDeduplicate(const TUReplacements &TUs,
|
||||||
FileToReplacementsMap &GroupedReplacements,
|
FileToReplacementsMap &GroupedReplacements,
|
||||||
|
@ -97,7 +98,8 @@ bool mergeAndDeduplicate(const TUReplacements &TUs,
|
||||||
/// \param[out] Rewrites The results of applying replacements will be applied
|
/// \param[out] Rewrites The results of applying replacements will be applied
|
||||||
/// to this Rewriter.
|
/// to this Rewriter.
|
||||||
///
|
///
|
||||||
/// \returns \li true If all changes were applied successfully.
|
/// \returns \parblock
|
||||||
|
/// \li true If all changes were applied successfully.
|
||||||
/// \li false If a replacement failed to apply.
|
/// \li false If a replacement failed to apply.
|
||||||
bool applyReplacements(const FileToReplacementsMap &GroupedReplacements,
|
bool applyReplacements(const FileToReplacementsMap &GroupedReplacements,
|
||||||
clang::Rewriter &Rewrites);
|
clang::Rewriter &Rewrites);
|
||||||
|
@ -125,7 +127,8 @@ bool writeFiles(const clang::Rewriter &Rewrites);
|
||||||
/// \param[in] Files Replacement files to delete.
|
/// \param[in] Files Replacement files to delete.
|
||||||
/// \param[in] Diagnostics DiagnosticsEngine used for error output.
|
/// \param[in] Diagnostics DiagnosticsEngine used for error output.
|
||||||
///
|
///
|
||||||
/// \returns \li true If all files have been deleted successfully.
|
/// \returns \parblock
|
||||||
|
/// \li true If all files have been deleted successfully.
|
||||||
/// \li false If at least one or more failures occur when deleting
|
/// \li false If at least one or more failures occur when deleting
|
||||||
/// files.
|
/// files.
|
||||||
bool deleteReplacementFiles(const TUReplacementFiles &Files,
|
bool deleteReplacementFiles(const TUReplacementFiles &Files,
|
||||||
|
|
|
@ -131,7 +131,8 @@ static void reportConflict(
|
||||||
/// to be deduplicated and checked for conflicts.
|
/// to be deduplicated and checked for conflicts.
|
||||||
/// \param[in] SM SourceManager required for conflict reporting.
|
/// \param[in] SM SourceManager required for conflict reporting.
|
||||||
///
|
///
|
||||||
/// \returns \li true if conflicts were detected
|
/// \returns \parblock
|
||||||
|
/// \li true if conflicts were detected
|
||||||
/// \li false if no conflicts were detected
|
/// \li false if no conflicts were detected
|
||||||
static bool deduplicateAndDetectConflicts(FileToReplacementsMap &Replacements,
|
static bool deduplicateAndDetectConflicts(FileToReplacementsMap &Replacements,
|
||||||
SourceManager &SM) {
|
SourceManager &SM) {
|
||||||
|
|
|
@ -100,7 +100,8 @@ static void printVersion() {
|
||||||
/// \param[out] Result Contents of the file after applying replacements if
|
/// \param[out] Result Contents of the file after applying replacements if
|
||||||
/// replacements were provided.
|
/// replacements were provided.
|
||||||
///
|
///
|
||||||
/// \returns \li true if all replacements were applied successfully.
|
/// \returns \parblock
|
||||||
|
/// \li true if all replacements were applied successfully.
|
||||||
/// \li false if at least one replacement failed to apply.
|
/// \li false if at least one replacement failed to apply.
|
||||||
static bool
|
static bool
|
||||||
getRewrittenData(const std::vector<tooling::Replacement> &Replacements,
|
getRewrittenData(const std::vector<tooling::Replacement> &Replacements,
|
||||||
|
@ -134,7 +135,8 @@ getRewrittenData(const std::vector<tooling::Replacement> &Replacements,
|
||||||
/// replacements were provided.
|
/// replacements were provided.
|
||||||
/// \param[in] Diagnostics For diagnostic output.
|
/// \param[in] Diagnostics For diagnostic output.
|
||||||
///
|
///
|
||||||
/// \returns \li true if all replacements applied successfully.
|
/// \returns \parblock
|
||||||
|
/// \li true if all replacements applied successfully.
|
||||||
/// \li false if at least one replacement failed to apply.
|
/// \li false if at least one replacement failed to apply.
|
||||||
static bool
|
static bool
|
||||||
applyReplacements(const std::vector<tooling::Replacement> &Replacements,
|
applyReplacements(const std::vector<tooling::Replacement> &Replacements,
|
||||||
|
@ -160,7 +162,8 @@ applyReplacements(const std::vector<tooling::Replacement> &Replacements,
|
||||||
/// \param[in] FormatStyle Style to apply.
|
/// \param[in] FormatStyle Style to apply.
|
||||||
/// \param[in] Diagnostics For diagnostic output.
|
/// \param[in] Diagnostics For diagnostic output.
|
||||||
///
|
///
|
||||||
/// \returns \li true if reformatting replacements were all successfully
|
/// \returns \parblock
|
||||||
|
/// \li true if reformatting replacements were all successfully
|
||||||
/// applied.
|
/// applied.
|
||||||
/// \li false if at least one reformatting replacement failed to apply.
|
/// \li false if at least one reformatting replacement failed to apply.
|
||||||
static bool
|
static bool
|
||||||
|
|
|
@ -41,7 +41,7 @@ public:
|
||||||
/// \param File A file accessible by a SourceManager
|
/// \param File A file accessible by a SourceManager
|
||||||
/// \param Include The include file as it should be written in the code.
|
/// \param Include The include file as it should be written in the code.
|
||||||
///
|
///
|
||||||
/// \returns
|
/// \returns \parblock
|
||||||
/// \li A null Replacement (check using \c Replacement::isApplicable()), if
|
/// \li A null Replacement (check using \c Replacement::isApplicable()), if
|
||||||
/// the \c Include is already visible from \c File.
|
/// the \c Include is already visible from \c File.
|
||||||
/// \li Otherwise, a non-null Replacement that, when applied, inserts an
|
/// \li Otherwise, a non-null Replacement that, when applied, inserts an
|
||||||
|
|
|
@ -31,7 +31,8 @@ public:
|
||||||
///
|
///
|
||||||
/// \param[in] Argv0 argv[0] as passed to main().
|
/// \param[in] Argv0 argv[0] as passed to main().
|
||||||
///
|
///
|
||||||
/// \returns \li true if clang-apply-replacements was found.
|
/// \returns \parblock
|
||||||
|
/// \li true if clang-apply-replacements was found.
|
||||||
/// \li false otherwise.
|
/// \li false otherwise.
|
||||||
bool findClangApplyReplacements(const char *Argv0);
|
bool findClangApplyReplacements(const char *Argv0);
|
||||||
|
|
||||||
|
@ -65,7 +66,8 @@ public:
|
||||||
///
|
///
|
||||||
/// \param[in] Replacements Container of replacements to serialize.
|
/// \param[in] Replacements Container of replacements to serialize.
|
||||||
///
|
///
|
||||||
/// \returns \li true if all replacements were serialized successfully to
|
/// \returns \parblock
|
||||||
|
/// \li true if all replacements were serialized successfully to
|
||||||
/// disk.
|
/// disk.
|
||||||
/// \li false otherwise.
|
/// \li false otherwise.
|
||||||
bool serializeReplacements(const TUReplacementsMap &Replacements);
|
bool serializeReplacements(const TUReplacementsMap &Replacements);
|
||||||
|
@ -76,7 +78,8 @@ public:
|
||||||
/// \pre Destination directory must have been previously set by calling
|
/// \pre Destination directory must have been previously set by calling
|
||||||
/// setDestiantionDir() or useTempDestinationDir().
|
/// setDestiantionDir() or useTempDestinationDir().
|
||||||
///
|
///
|
||||||
/// \returns \li true if clang-apply-replacements was successfully launched
|
/// \returns \parblock
|
||||||
|
/// \li true if clang-apply-replacements was successfully launched
|
||||||
/// and successfully completed.
|
/// and successfully completed.
|
||||||
/// \li false otherwise.
|
/// \li false otherwise.
|
||||||
bool applyReplacements();
|
bool applyReplacements();
|
||||||
|
@ -97,7 +100,8 @@ public:
|
||||||
/// \param[out] Error If an error occurs a description of that error is
|
/// \param[out] Error If an error occurs a description of that error is
|
||||||
/// placed in this string.
|
/// placed in this string.
|
||||||
///
|
///
|
||||||
/// \returns \li true on success
|
/// \returns \parblock
|
||||||
|
/// \li true on success
|
||||||
/// \li false if a unique file name could not be created.
|
/// \li false if a unique file name could not be created.
|
||||||
static bool generateReplacementsFileName(llvm::StringRef DestinationDir,
|
static bool generateReplacementsFileName(llvm::StringRef DestinationDir,
|
||||||
llvm::StringRef MainSourceFile,
|
llvm::StringRef MainSourceFile,
|
||||||
|
|
|
@ -95,7 +95,8 @@ public:
|
||||||
/// \p SourcePaths.
|
/// \p SourcePaths.
|
||||||
/// \param[in] SourcePaths list of sources to transform.
|
/// \param[in] SourcePaths list of sources to transform.
|
||||||
///
|
///
|
||||||
/// \returns \li 0 if successful
|
/// \returns \parblock
|
||||||
|
/// \li 0 if successful
|
||||||
/// \li 1 otherwise
|
/// \li 1 otherwise
|
||||||
virtual int apply(const clang::tooling::CompilationDatabase &Database,
|
virtual int apply(const clang::tooling::CompilationDatabase &Database,
|
||||||
const std::vector<std::string> &SourcePaths) = 0;
|
const std::vector<std::string> &SourcePaths) = 0;
|
||||||
|
@ -171,7 +172,8 @@ public:
|
||||||
|
|
||||||
/// \brief Add a Replacement to the list for the current translation unit.
|
/// \brief Add a Replacement to the list for the current translation unit.
|
||||||
///
|
///
|
||||||
/// \returns \li true on success
|
/// \returns \parblock
|
||||||
|
/// \li true on success
|
||||||
/// \li false if there is no current translation unit
|
/// \li false if there is no current translation unit
|
||||||
bool addReplacementForCurrentTU(const clang::tooling::Replacement &R);
|
bool addReplacementForCurrentTU(const clang::tooling::Replacement &R);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue