Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Gvozdev2011-04-29 07:17:42 -0400
committerAndrew Gvozdev2011-04-29 07:17:42 -0400
commitfe52e11b255ef0e09fc928b69adba8104492375e (patch)
tree31213481789c89deb435028ac4013c1690e745f2 /codan/org.eclipse.cdt.codan.core.test
parentbfab63bae94a5717cbe644927f52afda8cddac1c (diff)
downloadorg.eclipse.cdt-fe52e11b255ef0e09fc928b69adba8104492375e.tar.gz
org.eclipse.cdt-fe52e11b255ef0e09fc928b69adba8104492375e.tar.xz
org.eclipse.cdt-fe52e11b255ef0e09fc928b69adba8104492375e.zip
bug 343429: [checker] Checker to pinpoint unused static functions in a filev201104290807
Added exception for CVS ident
Diffstat (limited to 'codan/org.eclipse.cdt.codan.core.test')
-rw-r--r--codan/org.eclipse.cdt.codan.core.test/src/org/eclipse/cdt/codan/core/internal/checkers/UnusedSymbolInFileScopeCheckerTest.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/codan/org.eclipse.cdt.codan.core.test/src/org/eclipse/cdt/codan/core/internal/checkers/UnusedSymbolInFileScopeCheckerTest.java b/codan/org.eclipse.cdt.codan.core.test/src/org/eclipse/cdt/codan/core/internal/checkers/UnusedSymbolInFileScopeCheckerTest.java
index c737a95dda..5975ea70d7 100644
--- a/codan/org.eclipse.cdt.codan.core.test/src/org/eclipse/cdt/codan/core/internal/checkers/UnusedSymbolInFileScopeCheckerTest.java
+++ b/codan/org.eclipse.cdt.codan.core.test/src/org/eclipse/cdt/codan/core/internal/checkers/UnusedSymbolInFileScopeCheckerTest.java
@@ -244,4 +244,16 @@ public class UnusedSymbolInFileScopeCheckerTest extends CheckerTestCase {
checkNoErrors();
}
+ // static char* test_var="$Id: file.c,v 1.1 2000/01/01 11:11:11 agvozdev Exp $";
+ public void testExternVariable_Declaration_cvs_ident() throws IOException {
+ loadCodeAndRun(getAboveComment());
+ checkNoErrors();
+ }
+
+ // static char* test_var="@(#) $Header: /src/file.c,v 1.1 2000/01/01 11:11:11 agvozdev Exp $";
+ public void testExternVariable_Declaration_sccs_ident() throws IOException {
+ loadCodeAndRun(getAboveComment());
+ checkNoErrors();
+ }
+
}

Back to the top