[PATCH] D85440: [SyntaxTree] Implement `NNS` using the `List` base API

Dmitri Gribenko via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 10 05:53:39 PDT 2020


gribozavr2 accepted this revision.
gribozavr2 added inline comments.


================
Comment at: clang/lib/Tooling/Syntax/Tree.cpp:362
+  switch (this->kind()) {
+  case NodeKind::NestedNameSpecifier: {
+    return clang::tok::coloncolon;
----------------
Please drop the braces within 'case' unless you need them to create a new scope for a variable.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D85440



More information about the cfe-commits mailing list