[all-commits] [llvm/llvm-project] b51a03: [Clang][NFC] Rename methods/vars to reflect their ...

Bill Wendling via All-commits all-commits at lists.llvm.org
Tue Apr 18 13:48:25 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b51a03e1bbe7ea8868ffb24472fc532d0c00943c
      https://github.com/llvm/llvm-project/commit/b51a03e1bbe7ea8868ffb24472fc532d0c00943c
  Author: Bill Wendling <morbo at google.com>
  Date:   2023-04-18 (Tue, 18 Apr 2023)

  Changed paths:
    M clang-tools-extra/clangd/FindTarget.cpp
    M clang-tools-extra/clangd/XRefs.cpp
    M clang/include/clang/AST/Expr.h
    M clang/include/clang/Sema/Designator.h
    M clang/include/clang/Tooling/Refactoring/RecursiveSymbolVisitor.h
    M clang/lib/AST/Expr.cpp
    M clang/lib/Index/IndexBody.cpp
    M clang/lib/Sema/SemaCodeComplete.cpp
    M clang/lib/Sema/SemaInit.cpp
    M clang/lib/Sema/TreeTransform.h
    M clang/lib/Serialization/ASTReaderStmt.cpp
    M clang/lib/Serialization/ASTWriterStmt.cpp
    M clang/lib/Tooling/Refactoring/Rename/USRLocFinder.cpp
    M clang/tools/libclang/CIndex.cpp

  Log Message:
  -----------
  [Clang][NFC] Rename methods/vars to reflect their real usage

The "getField" method is a bit confusing considering we also have a
"getFieldName" method. Instead, use "getFieldDecl" rather than
"getField".

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




More information about the All-commits mailing list