[PATCH] D115936: [Clang] Add isInNamespace() to check if a Decl in a specific namespace

Jun Zhang via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 6 03:48:09 PST 2022


junaire updated this revision to Diff 397842.
junaire added a comment.

After Aarron's comments, I realize what I really want to do is add a new
ASTMatcher that matches declarations what in the top level namespace like std.

This update fixed previous broken one, added some comments and unit tests.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D115936

Files:
  clang/include/clang/AST/DeclBase.h
  clang/include/clang/ASTMatchers/ASTMatchers.h
  clang/lib/AST/DeclBase.cpp
  clang/unittests/ASTMatchers/ASTMatchersNarrowingTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D115936.397842.patch
Type: text/x-patch
Size: 4350 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220106/3527d4fd/attachment.bin>


More information about the cfe-commits mailing list