• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

universal-ctags / ctags / 4143
84%
master: 87%

Build:
Build:
LAST BUILD BRANCH: doc-revise
DEFAULT BRANCH: master
Ran 07 Jul 2018 09:43AM UTC
Jobs 1
Files 159
Run time 11s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
4143

Pull #1783

travis-ci

web-flow
C++: introduce "using" role to "namespace" kind

"foo" in "using namespace foo;" was captured as using kind.
However, "foo" is not defined in the statement.
"foo" is referred as a namespace defined somewhere.

Therefore, ctags should not capture "foo" as a definition tag.
Instead, ctags should capture it as a reference tag.

The original code captures "foo" as a definition tag of "using" kind.
This change captures "foo" as a reference tag of "using" role of
"namespace" kind.

  $ cat /tmp/foo.hh
  using namespace std::cout;
  $ ./ctags -o - /tmp/foo.hh
  $ ./ctags -o - --extras=+r /tmp/foo.hh
  std::cout	/tmp/foo.hh	/^using namespace std::cout;$/;"	n
  $ ./ctags -o - --extras=+r --fields=+K /tmp/foo.hh
  std::cout	/tmp/foo.hh	/^using namespace std::cout;$/;"	namespace
  $ ./ctags -o - --extras=+r --fields=+Kr /tmp/foo.hh
  std::cout	/tmp/foo.hh	/^using namespace std::cout;$/;"	namespace	roles:using

  $ ./ctags --list-roles=C++.namespace
  #KIND(L/N)   NAME  ENABLED DESCRIPTION
  n/namespace  using on      specified with "using namespace"

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Pull Request #1783: C++: introduce "using" role to "namespace" kind

7 of 7 new or added lines in 2 files covered. (100.0%)

27569 of 32671 relevant lines covered (84.38%)

16909.64 hits per line

Jobs
ID Job ID Ran Files Coverage
1 4143.1 (TARGET=Unix) 07 Jul 2018 09:43AM UTC 0
84.38
Travis Job 4143.1
Source Files on build 4143
  • Tree
  • List 0
  • Changed 24
  • Source Changed 2
  • Coverage Changed 24
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Travis Build #4143
  • Pull Request #1783
  • PR Base - master (#4141)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc