]> granicus.if.org Git - clang/commitdiff
[clang-tidy] Address post-commit comments
authorHaojian Wu <hokein@google.com>
Thu, 18 Apr 2019 14:18:14 +0000 (14:18 +0000)
committerHaojian Wu <hokein@google.com>
Thu, 18 Apr 2019 14:18:14 +0000 (14:18 +0000)
Summary:
Also add a test to verify clang-tidy only apply the first alternative
fix.

Reviewers: alexfh

Subscribers: xazax.hun, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D60857

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@358666 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Tooling/Core/Diagnostic.h

index 0491d1355d0c9d86d979056b98fbf6d9d2320c31..4e0feba6d7dcbbeb0019150239888b8df14f7db8 100644 (file)
@@ -93,8 +93,8 @@ struct TranslationUnitDiagnostics {
   std::vector<Diagnostic> Diagnostics;
 };
 
-// Get the first fix to apply for this diagnostic.
-// Return nullptr if no fixes attached to the diagnostic.
+/// Get the first fix to apply for this diagnostic.
+/// \returns nullptr if no fixes are attached to the diagnostic.
 const llvm::StringMap<Replacements> *selectFirstFix(const Diagnostic& D);
 
 } // end namespace tooling