Skip to content

Commit c641dd2

Browse files
committed
[NFC][clang-tidy] reword diagnostic note in definitions-in-headers
`make as inline` made little sense here, so I changed the `make` to `mark` and added `the definition` as well.
1 parent f13b7d0 commit c641dd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang-tools-extra/clang-tidy/misc/DefinitionsInHeadersCheck.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ void DefinitionsInHeadersCheck::check(const MatchFinder::MatchResult &Result) {
102102
// inline is not allowed for main function.
103103
if (FD->isMain())
104104
return;
105-
diag(FD->getLocation(), /*Description=*/"make as 'inline'",
105+
diag(FD->getLocation(), "mark the definition as 'inline'",
106106
DiagnosticIDs::Note)
107107
<< FixItHint::CreateInsertion(FD->getInnerLocStart(), "inline ");
108108
} else if (const auto *VD = dyn_cast<VarDecl>(ND)) {

0 commit comments

Comments
 (0)