File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed
cxx-checks/src/main/java/org/sonar/cxx/checks
cxx-squid/src/main/java/org/sonar/cxx/parser Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 2626import org .sonar .check .Priority ;
2727import org .sonar .check .Rule ;
2828import org .sonar .check .RuleProperty ;
29+ import org .sonar .cxx .api .CxxTokenType ;
2930import org .sonar .cxx .checks .utils .CheckUtils ;
30- import org .sonar .cxx .parser .CxxGrammarImpl ;
3131import org .sonar .cxx .tag .Tag ;
3232import org .sonar .squidbridge .annotations .ActivatedByDefault ;
3333import org .sonar .squidbridge .annotations .SqaleConstantRemediation ;
@@ -69,7 +69,7 @@ public class HardcodedAccountCheck extends SquidCheck<Grammar> {
6969 @ Override
7070 public void init () {
7171 pattern = CheckUtils .compileUserRegexp (regularExpression );
72- subscribeTo (CxxGrammarImpl . LITERAL );
72+ subscribeTo (CxxTokenType . STRING );
7373 }
7474
7575 @ Override
Original file line number Diff line number Diff line change 2626import org .sonar .check .Priority ;
2727import org .sonar .check .Rule ;
2828import org .sonar .check .RuleProperty ;
29+ import org .sonar .cxx .api .CxxTokenType ;
2930import org .sonar .cxx .checks .utils .CheckUtils ;
30- import org .sonar .cxx .parser .CxxGrammarImpl ;
3131import org .sonar .cxx .tag .Tag ;
3232import org .sonar .squidbridge .annotations .ActivatedByDefault ;
3333import org .sonar .squidbridge .annotations .SqaleConstantRemediation ;
@@ -67,7 +67,7 @@ public class HardcodedIpCheck extends SquidCheck<Grammar> {
6767 @ Override
6868 public void init () {
6969 pattern = CheckUtils .compileUserRegexp (regularExpression );
70- subscribeTo (CxxGrammarImpl . LITERAL );
70+ subscribeTo (CxxTokenType . STRING );
7171 }
7272
7373 @ Override
Original file line number Diff line number Diff line change 2727import org .sonar .check .Priority ;
2828import org .sonar .check .Rule ;
2929import org .sonar .check .RuleProperty ;
30- import org .sonar .cxx .parser . CxxGrammarImpl ;
30+ import org .sonar .cxx .api . CxxTokenType ;
3131import org .sonar .cxx .tag .Tag ;
3232import org .sonar .squidbridge .annotations .ActivatedByDefault ;
3333import org .sonar .squidbridge .annotations .SqaleConstantRemediation ;
@@ -57,7 +57,7 @@ public class StringLiteralDuplicatedCheck extends SquidCheck<Grammar> {
5757
5858 @ Override
5959 public void init () {
60- subscribeTo (CxxGrammarImpl . LITERAL );
60+ subscribeTo (CxxTokenType . STRING );
6161 }
6262
6363 @ Override
Original file line number Diff line number Diff line change @@ -386,7 +386,7 @@ private static void misc(LexerfulGrammarBuilder b) {
386386 BOOL , // boolean-literal
387387 NULLPTR // pointer-literal
388388 )
389- );
389+ ). skip () ;
390390 }
391391
392392 private static void vcAttributedAtl (LexerfulGrammarBuilder b ) {
You can’t perform that action at this time.
0 commit comments