Skip to content

Commit 9478379

Browse files
anerokhisawenzel
authored andcommitted
Print fully-qualified names
1 parent b7229a0 commit 9478379

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

aliceO2/NamespaceNamingCheck.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ void NamespaceNamingCheck::check(const MatchFinder::MatchResult &Result) {
6969

7070
if(fixNamespaceName(newName))
7171
{
72-
diag(MatchedNamespaceDecl->getLocation(), "namespace %0 does not follow the underscore convention")
72+
diag(MatchedNamespaceDecl->getLocation(), "namespace %q0 does not follow the underscore convention")
7373
<< MatchedNamespaceDecl
7474
<< FixItHint::CreateReplacement(MatchedNamespaceDecl->getLocation(), newName);
7575
}
@@ -92,7 +92,7 @@ void NamespaceNamingCheck::check(const MatchFinder::MatchResult &Result) {
9292

9393
if(fixNamespaceName(newName))
9494
{
95-
diag(MatchedNamespaceLoc->getLocalBeginLoc(), "namespace %0 does not follow the underscore convention")
95+
diag(MatchedNamespaceLoc->getLocalBeginLoc(), "namespace %q0 does not follow the underscore convention")
9696
<< AsNamespace
9797
<< FixItHint::CreateReplacement(MatchedNamespaceLoc->getLocalBeginLoc(), newName);
9898
}
@@ -119,7 +119,7 @@ void NamespaceNamingCheck::check(const MatchFinder::MatchResult &Result) {
119119

120120
if(fixNamespaceName(newName))
121121
{
122-
diag(MatchedUsingNamespace->getLocation(), "namespace %0 does not follow the underscore convention")
122+
diag(MatchedUsingNamespace->getLocation(), "namespace %q0 does not follow the underscore convention")
123123
<< MatchedUsingNamespace->getNominatedNamespace()
124124
<< FixItHint::CreateReplacement(MatchedUsingNamespace->getLocation(), newName);
125125
}

0 commit comments

Comments
 (0)