[AST] Remove args from LocationCall
authorStephen Kelly <steveire@gmail.com>
Fri, 16 Apr 2021 21:29:06 +0000 (22:29 +0100)
committerStephen Kelly <steveire@gmail.com>
Sat, 17 Apr 2021 16:21:55 +0000 (17:21 +0100)
commitebc6608fb79057eaed27435d62d5dea0979bd9d3
treefc4047a93129584e8d343af4183d49b01b90f4bd
parentbbf01f96b5ccc1dcb4d1d47cb55292c27c698dbb
[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
clang/include/clang/Tooling/NodeIntrospection.h
clang/lib/Tooling/NodeIntrospection.cpp
clang/unittests/Introspection/IntrospectionTest.cpp