From: Haojian Wu Date: Thu, 18 Apr 2019 14:18:14 +0000 (+0000) Subject: [clang-tidy] Address post-commit comments X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b963d13b0b38b2364e26256a54825f5f53157d8a;p=clang [clang-tidy] Address post-commit comments 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 --- diff --git a/include/clang/Tooling/Core/Diagnostic.h b/include/clang/Tooling/Core/Diagnostic.h index 0491d1355d..4e0feba6d7 100644 --- a/include/clang/Tooling/Core/Diagnostic.h +++ b/include/clang/Tooling/Core/Diagnostic.h @@ -93,8 +93,8 @@ struct TranslationUnitDiagnostics { std::vector 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 *selectFirstFix(const Diagnostic& D); } // end namespace tooling