r358666 - [clang-tidy] Address post-commit comments

Haojian Wu via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 18 07:18:14 PDT 2019

Author: hokein
Date: Thu Apr 18 07:18:14 2019
New Revision: 358666

URL: http://llvm.org/viewvc/llvm-project?rev=358666&view=rev
[clang-tidy] Address post-commit comments

Also add a test to verify clang-tidy only apply the first alternative

Reviewers: alexfh

Subscribers: xazax.hun, cfe-commits

Tags: #clang

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


Modified: cfe/trunk/include/clang/Tooling/Core/Diagnostic.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Tooling/Core/Diagnostic.h?rev=358666&r1=358665&r2=358666&view=diff
--- cfe/trunk/include/clang/Tooling/Core/Diagnostic.h (original)
+++ cfe/trunk/include/clang/Tooling/Core/Diagnostic.h Thu Apr 18 07:18:14 2019
@@ -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

More information about the cfe-commits mailing list