[PATCH] D55411: [clang-tidy] check for flagging using declarations not in the inner most namespace

Yucheng Wu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 6 22:04:38 PST 2018


Ywicheng created this revision.
Ywicheng added a reviewer: JonasToth.
Herald added subscribers: cfe-commits, xazax.hun, mgorny.

This patch adds one check corresponding to the Scope of the Alias section in https://abseil.io/tips/119.

In particular, it is better to put aliases in the innermost namespace


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D55411

Files:
  clang-tidy/abseil/AbseilTidyModule.cpp
  clang-tidy/abseil/CMakeLists.txt
  clang-tidy/abseil/SafelyScopedCheck.cpp
  clang-tidy/abseil/SafelyScopedCheck.h
  docs/ReleaseNotes.rst
  docs/clang-tidy/checks/abseil-safely-scoped.rst
  docs/clang-tidy/checks/list.rst
  test/clang-tidy/abseil-safely-scoped.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55411.177123.patch
Type: text/x-patch
Size: 7976 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20181207/0e06b45a/attachment.bin>


More information about the cfe-commits mailing list