[PATCH] D90568: [clang] Add [is|set]Nested methods to NamespaceDecl

Nathan James via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Nov 1 11:07:46 PST 2020


njames93 created this revision.
njames93 added a reviewer: rsmith.
Herald added subscribers: cfe-commits, martong.
Herald added a reviewer: shafik.
Herald added a project: clang.
njames93 requested review of this revision.

Adds support for NamespaceDecl to inform if its part of a nested namespace.
This flag only corresponds to the outer namespaces in a nested namespace declaration.
In this example:
namespace <X>::<Y>::<Z> {}
Only <X> and <Y> will be classified as nested.

This flag isn't meant for assisting in building the AST, more for static analysis and refactorings.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D90568

Files:
  clang/include/clang/AST/Decl.h
  clang/include/clang/Sema/Sema.h
  clang/lib/AST/ASTContext.cpp
  clang/lib/AST/ASTImporter.cpp
  clang/lib/AST/DeclCXX.cpp
  clang/lib/AST/TextNodeDumper.cpp
  clang/lib/Parse/ParseDeclCXX.cpp
  clang/lib/Sema/SemaDeclCXX.cpp
  clang/lib/Serialization/ASTReaderDecl.cpp
  clang/lib/Serialization/ASTWriterDecl.cpp
  clang/test/AST/ast-dump-decl.cpp
  clang/unittests/Sema/ExternalSemaSourceTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D90568.302167.patch
Type: text/x-patch
Size: 16376 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20201101/e63858a5/attachment-0001.bin>


More information about the cfe-commits mailing list