usaxena95 added a comment.

We actually use both the name and the **source location** of the macro to 
calculate its ID.
I see that the subject of the patch might suggest otherwise. 
This is a trivial change which just changes the params of the function so that 
users don't have to carry the IdentifierInfo when we just want the name out of 
it.

We use `clang::index::generateUSRForMacro(StringRef MacroName, SourceLocation 
Loc, const SourceManager &SM, SmallVectorImpl<char> &Buf)` to generate the 
SymbolID.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D69937/new/

https://reviews.llvm.org/D69937



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to