Skip to content

C++: concepts #4065

@mattkretz

Description

@mattkretz

The name of the parser: C++

The command line you used to run ctags:

$ ctags

The content of input file:

template <typename T> concept foo = true;

The tags output you are not satisfied with: It's empty.

The tags output you expect:

foo     test.h  /^template <typename T> concept foo = true;$/

The version of ctags:

$ ctags --version
Universal Ctags 6.1.0(), Copyright (C) 2015-2023 Universal Ctags Team
Universal Ctags is derived from Exuberant Ctags.
Exuberant Ctags 5.8, Copyright (C) 1996-2009 Darren Hiebert
  Compiled: Jul 18 2024, 10:25:58
  URL: https://ctags.io/
  Output version: 0.0
  Optional compiled features: +wildcards, +regex, +iconv, +option-directory, +xpath, +packcc, +optscript, +pcre2

How do you get ctags binary: Building it locally from git master.

I'm willing to give a pull request a shot. cxxParserParseBlockInternal, handle CXXKeywordCONCEPT in the switch, call a new cxxParserParseConcept function. That's how far I got. I'd start with a copy of the cxxParserParseEnum function and try to adapt that. Does that sound right? Any guidance?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions