[PATCH] D111224: [clang] Traverse enum integer-base specifiers in RAV

Kadir Cetinkaya via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 6 05:58:25 PDT 2021


kadircet created this revision.
kadircet added reviewers: nridge, hokein.
Herald added subscribers: usaxena95, arphaman.
kadircet requested review of this revision.
Herald added projects: clang, clang-tools-extra.
Herald added a subscriber: cfe-commits.

Visit enum integer-base specifiers explicitly written in the code.

This is achieved by:

- traversing the typeloc for integer-base on enum decls when they are spelled in the code (similar to base-specifiers for CXXRecordDecls).
- Visiting the typesourceinfo for integer-base in libindex, similar to base-specifiers.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D111224

Files:
  clang-tools-extra/clangd/unittests/SemanticHighlightingTests.cpp
  clang-tools-extra/clangd/unittests/XRefsTests.cpp
  clang/include/clang/AST/RecursiveASTVisitor.h
  clang/lib/Index/IndexTypeSourceInfo.cpp
  clang/unittests/Index/IndexTests.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D111224.377515.patch
Type: text/x-patch
Size: 4059 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20211006/86319700/attachment.bin>


More information about the cfe-commits mailing list