[all-commits] [llvm/llvm-project] 394a38: [TableGen] Add a location for a class definition t...

Roman Rusyaev via All-commits all-commits at lists.llvm.org
Wed Jul 20 06:56:55 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 394a388d140dc9e74178532501cddb558a589398
      https://github.com/llvm/llvm-project/commit/394a388d140dc9e74178532501cddb558a589398
  Author: Roman Rusyaev <rusyaev.rm at gmail.com>
  Date:   2022-07-20 (Wed, 20 Jul 2022)

  Changed paths:
    M llvm/include/llvm/TableGen/Record.h
    M llvm/lib/TableGen/Record.cpp
    M llvm/lib/TableGen/TGParser.cpp
    A llvm/test/TableGen/GenTags.td
    M llvm/utils/TableGen/CTagsEmitter.cpp

  Log Message:
  -----------
  [TableGen] Add a location for a class definition that was forward-declared

This change improves ctags generation for tablegen files.

For the following example
```
class A;

class A {
  int a;
}
```
Previously, tags were generated only for a forward declaration of class 'A'.

This patch allows generating tags for the forward declarations
and further definition of class 'A'.

Reviewed By: barannikov88

Original patch by: rusyaev-roman (Roman Rusyaev)
Some adjustments by: nhaehnle (Nicolai Hähnle)

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




More information about the All-commits mailing list