semgrep / semgrep

Lightweight static analysis for many languages. Find bug variants with patterns that look like source code.

Home Page:https://semgrep.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error parsing CPP header files

orizerah opened this issue · comments

commented

Describe the bug
I get a syntax error when parsing a CPP header file Syntax error at line api.h:47:\n ::string & was unexpected.

To Reproduce
Steps to reproduce the behavior, ideally a link to https://semgrep.dev: https://semgrep.dev/playground/s/BY0W5

Expected behavior
The file should be parsed and rules should be applied

What is the priority of the bug to you?

  • P0: blocking your adoption of Semgrep or workflow
  • P1: important to fix or quite annoying
  • P2: regular bug that should get fixed

Use case
What will fixing this bug enable for you?
scanning our CPP files