Skip to content

Wrong result for header file #1

@keineahnung2345

Description

@keineahnung2345

Hi,

I have a class in my source file, and its name is falsely reported as violating variable naming rule, the log is like:

    [Line 29, Col 0]: Variable 'XxxYyyZzz' does not match '^([a-z0-9]+)([A-Z0-9][a-z0-9]*)*$'

And following is part of my .cppstyle:

naming:
    classes: ^([A-Z][a-z0-9]*)+$
    variables: ^([a-z0-9]+)([A-Z0-9][a-z0-9]*)*$

By checking the function to_node in parser.py, it seems the kind of my class is CursorKind.VAR_DECL so it will return a Variable object.

Have you met this problem before? Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions