Sha256: 49763b83c6accc9b7480dea477faa18b1dbf4a4103c8cb88373cc979e874729f

Contents?: true

Size: 856 Bytes

Versions: 2

Compression:

Stored size: 856 Bytes

Contents

gen-input.sh generates a header file in which C++ keywords are used as C identifiers.
gen-expected-tags.sh generates an incomplete expected.tags.

Copyed from #930:

    I found this case in linux kernel.

    Consider a C language header having .h suffix.
    In C language private is not a keyword.
    New Cxx parser doesn't record a variable named private because
    the parser recognized it as C++ keyword.``
    Old Cxx parser

    [yamato@x201]/tmp% cat foo.h
    extern int private;
    static inline int f(void)
    {
      return private;
    }
    typedef int int32;


    [yamato@x201]/tmp% u-ctags -o - /tmp/foo.h 
    # nothing is captured.

    [yamato@x201]/tmp% u-ctags --languages=+OldC++ --language-force=OldC++ -o - /tmp/foo.h
    f   /tmp/foo.h  /^static inline int f(void)$/;" f
    int32   /tmp/foo.h  /^typedef int int32;$/;"    t

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ctags.rb-1.1.4 ext/vendor/ctags/Units/parser-cxx.r/cxx-keywords-as-c-identifiers.b/README
ctags.rb-1.1.3 ext/vendor/ctags/Units/parser-cxx.r/cxx-keywords-as-c-identifiers.b/README