[all-commits] [llvm/llvm-project] 984cf9: [clang][NFC] Add some documentation about the use ...
Bruno Ricci via All-commits
all-commits at lists.llvm.org
Tue Jul 28 07:43:45 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 984cf99055a292b3afe4535c013d38914a3da880
https://github.com/llvm/llvm-project/commit/984cf99055a292b3afe4535c013d38914a3da880
Author: Bruno Ricci <riccibrun at gmail.com>
Date: 2020-07-28 (Tue, 28 Jul 2020)
Changed paths:
M clang/include/clang/AST/Decl.h
Log Message:
-----------
[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.
More information about the All-commits
mailing list