[all-commits] [llvm/llvm-project] 30d9ca: [clang][AST] Encapsulate DeclarationNameLoc, NFCI

Mikhail Maltsev via All-commits all-commits at lists.llvm.org
Wed Jan 27 03:25:34 PST 2021


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 30d9ca1bd9de8286539577d0abfc812ad122861c
      https://github.com/llvm/llvm-project/commit/30d9ca1bd9de8286539577d0abfc812ad122861c
  Author: Mikhail Maltsev <mikhail.maltsev at arm.com>
  Date:   2021-01-27 (Wed, 27 Jan 2021)

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

  Log Message:
  -----------
  [clang][AST] Encapsulate DeclarationNameLoc, NFCI

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).

Reviewed By: aprantl

Differential Revision: https://reviews.llvm.org/D94596




More information about the All-commits mailing list