[all-commits] [llvm/llvm-project] ebc660: [AST] Remove args from LocationCall

Stephen Kelly via All-commits all-commits at lists.llvm.org
Sat Apr 17 09:22:17 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ebc6608fb79057eaed27435d62d5dea0979bd9d3
      https://github.com/llvm/llvm-project/commit/ebc6608fb79057eaed27435d62d5dea0979bd9d3
  Author: Stephen Kelly <steveire at gmail.com>
  Date:   2021-04-17 (Sat, 17 Apr 2021)

  Changed paths:
    M clang/include/clang/Tooling/NodeIntrospection.h
    M clang/lib/Tooling/NodeIntrospection.cpp
    M clang/unittests/Introspection/IntrospectionTest.cpp

  Log Message:
  -----------
  [AST] Remove args from LocationCall

This class initially had args to be generic to future needs. In
particular, I thought that source location introspection should show the
getBeginLoc of CallExpr args and the getArgLoc of
TemplateSpecializationLocInfo etc.  However, that is probably best left
out of source location introspection because it involves node traversal.

If something like this is needed in the future, it can be added in the
future.

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




More information about the All-commits mailing list