Skip to content

Cache cppvar #281

@matyalatte

Description

@matyalatte

I noticed that cpplint calls GetHeaderGuardCPPVariable(filename) for each line. I believe cpplint should call it only once per file.

I removed the redundant function calls from my c++ implementation of cpplint, which reduced execution time by about 10%.

I think it's worth trying a similar optimization with cpplint.py.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions