[PATCH] D94596: [clang][AST] Encapsulate DeclarationNameLoc, NFCI

Mikhail Maltsev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 13 06:04:36 PST 2021


miyuki created this revision.
miyuki added reviewers: aprantl, dexonsmith, rsmith, faisalv.
Herald added a subscriber: arphaman.
miyuki requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

This change makes `DeclarationNameLoc` a proper class and refactors its
users to use getter methods instead of accessing the members directly.
The change also makes `DeclarationNameLoc` immutable (i.e., it cannot
be modified once constructed).


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D94596

Files:
  clang/include/clang/AST/DeclarationName.h
  clang/lib/AST/ASTContext.cpp
  clang/lib/AST/DeclarationName.cpp
  clang/lib/Sema/SemaDecl.cpp
  clang/lib/Sema/SemaLambda.cpp
  clang/lib/Sema/TreeTransform.h
  clang/lib/Serialization/ASTReader.cpp
  clang/lib/Serialization/ASTWriter.cpp
  clang/tools/libclang/CIndex.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94596.316377.patch
Type: text/x-patch
Size: 17684 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210113/d53d1a55/attachment-0001.bin>


More information about the cfe-commits mailing list