[PATCH] D124288: [Index] Add a USR and symbol kind for UnresolvedUsingIfExists

Ben Barham via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 22 11:44:59 PDT 2022


bnbarham added inline comments.


================
Comment at: clang/test/Index/using_if_exists.cpp:9
+// CHECK: [[@LINE-1]]:11 | using/C++ | foo | c:@UD at foo | <no-cgname> | Decl | rel: 0
+// CHECK: [[@LINE-2]]:11 | using/using-unresolved/C++ | foo | c:using_if_exists.cpp at UUIE@foo | <no-cgname> | Ref | rel: 0
----------------
The AST here is:
UsingDecl -> UsingShadowDecl -> UnresolvedUsingIfExistsDecl

So the `UnresolvedUsingIfExistsDecl` is a reference, which is a bit weird since there is no decl. But... there is no decl ("foo" doesn't exist), so this seems somewhat reasonable. Any objections?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D124288/new/

https://reviews.llvm.org/D124288



More information about the cfe-commits mailing list