[clang][NFC] Add some documentation about the use of NamedDecl::getDeclName in diagno...
authorBruno Ricci <riccibrun@gmail.com>
Tue, 28 Jul 2020 14:39:17 +0000 (15:39 +0100)
committerBruno Ricci <riccibrun@gmail.com>
Tue, 28 Jul 2020 14:39:17 +0000 (15:39 +0100)
commit984cf99055a292b3afe4535c013d38914a3da880
tree0ed3118638c4eae0fcfea262af663c81009e79c0
parent01302ec08609ef3b113e13aba2a08443e4fa3046
[clang][NFC] Add some documentation about the use of NamedDecl::getDeclName in diagnostics.

As explained in eb10b065f2a870b425dcc2040b9955e0eee464b4, sending a NamedDecl*
in a diagnostic should generally be preferred over sending the DeclarationName
from getDeclName(). Let's document that.
clang/include/clang/AST/Decl.h