[all-commits] [llvm/llvm-project] f347f0: [AST] Add introspection support for more base nodes

Stephen Kelly via All-commits all-commits at lists.llvm.org
Wed Apr 14 13:36:18 PDT 2021


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

  Changed paths:
    M clang/include/clang/Tooling/NodeIntrospection.h
    M clang/lib/Tooling/CMakeLists.txt
    M clang/lib/Tooling/DumpTool/ASTSrcLocProcessor.cpp
    M clang/lib/Tooling/DumpTool/generate_cxx_src_locs.py
    M clang/unittests/Introspection/IntrospectionTest.cpp

  Log Message:
  -----------
  [AST] Add introspection support for more base nodes

Fix the logic of detecting pseudo-virtual getBeginLoc etc on Stmt and
Decl subclasses.

Adjust the test infrastructure to filter out invalid source locations.
This makes the tests more clear about which nodes have which locations.

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




More information about the All-commits mailing list