D9139: Try detecting unused contexts

Dominik Haumann noreply at phabricator.kde.org
Sun Dec 3 15:10:58 UTC 2017


dhaumann created this revision.
dhaumann added a reviewer: vkrause.
Restricted Application added a project: Frameworks.
Restricted Application added a subscriber: Frameworks.

REVISION SUMMARY
  Try detecting unused contexts. This is only a heuristic,
  since a context might be cross-included via IncludeRules.
  
  Possible unused contexts:
  ContextChecker::check: "abc.xml" Unused contexts: QSet("Part")
  ContextChecker::check: "ample.xml" Unused contexts: QSet("Outscoped", "AfterHash", "Region Marker")
  ContextChecker::check: "ansys.xml" Unused contexts: QSet("functions", "functions_arg")
  ContextChecker::check: "asterisk.xml" Unused contexts: QSet("Commentar 1")
  ContextChecker::check: "boo.xml" Unused contexts: QSet("Single A-comment", "Single Q-comment")
  ContextChecker::check: "cg.xml" Unused contexts: QSet("Outscoped", "Commentar/Preprocessor")
  ContextChecker::check: "cisco.xml" Unused contexts: QSet("Parameter", "String")
  ContextChecker::check: "dosbat.xml" Unused contexts: QSet("Assign")
  ContextChecker::check: "elixir.xml" Unused contexts: QSet("regexpr_rules", "Comment Line", "Find closing block brace")
  ContextChecker::check: "email.xml" Unused contexts: QSet("body-context")
  ContextChecker::check: "fasm.xml" Unused contexts: QSet("Preprocessor")
  ContextChecker::check: "ferite.xml" Unused contexts: QSet("unknown 2", "unknown")
  ContextChecker::check: "fgl-4gl.xml" Unused contexts: QSet("Normal Text 2", "Normal Text 3")
  ContextChecker::check: "fgl-per.xml" Unused contexts: QSet("Normal Text 2", "Normal Text 3")
  ContextChecker::check: "ftl.xml" Unused contexts: QSet("comment", "values")
  ContextChecker::check: "gcc.xml" Unused contexts: QSet("GNUMacros")
  ContextChecker::check: "haml.xml" Unused contexts: QSet("comment0", "comment2", "stringx", "Comment Line", "string")
  ContextChecker::check: "ilerpg.xml" Unused contexts: QSet("EvalOCCont")
  ContextChecker::check: "isocpp.xml" Unused contexts: QSet("DetectIdentifierEnd")
  ContextChecker::check: "jam.xml" Unused contexts: QSet("RuleDefinitionFull")
  ContextChecker::check: "julia.xml" Unused contexts: QSet("squared", "nested", "curly")
  ContextChecker::check: "kotlin.xml" Unused contexts: QSet("symbols")
  ContextChecker::check: "latex.xml" Unused contexts: QSet("ToEndOfLine")
  ContextChecker::check: "metafont.xml" Unused contexts: QSet("ToEndOfLine")
  ContextChecker::check: "modula-2.xml" Unused contexts: QSet("Comment3")
  ContextChecker::check: "nesc.xml" Unused contexts: QSet("Some Context2", "Some Context")
  ContextChecker::check: "perl.xml" Unused contexts: QSet("package_qualified_blank", "end_handle")
  ContextChecker::check: "povray.xml" Unused contexts: QSet("Commentar")
  ContextChecker::check: "protobuf.xml" Unused contexts: QSet("Commentar")
  ContextChecker::check: "ruby.xml" Unused contexts: QSet("Comment Line")
  ContextChecker::check: "sisu.xml" Unused contexts: QSet("indent")
  ContextChecker::check: "stata.xml" Unused contexts: QSet("Base", "Comment 2")
  ContextChecker::check: "systemverilog.xml" Unused contexts: QSet("Define", "Outscoped")
  ContextChecker::check: "tcsh.xml" Unused contexts: QSet("AssignSubscr", "SubstFile", "ProcessSubst", "HereDoc", "SubstCommand")
  ContextChecker::check: "varnishtest.xml" Unused contexts: QSet("varnish_expectation_arg1_brace-string", "varnish_expectation_arg1_quoted-string", "varnish_expectation_arg1_unquoted-string")
  ContextChecker::check: "varnishtest4.xml" Unused contexts: QSet("varnish_expectation_arg1_brace-string", "varnish_expectation_arg1_quoted-string", "varnish_expectation_arg1_unquoted-string")
  ContextChecker::check: "verilog.xml" Unused contexts: QSet("Some Context2", "Port")
  ContextChecker::check: "xharbour.xml" Unused contexts: QSet("logic")
  ContextChecker::check: "xmldebug.xml" Unused contexts: QSet("51:unused", "45:Enumeration or End")

TEST PLAN
  make && make test

REPOSITORY
  R216 Syntax Highlighting

BRANCH
  UnusedContextChecker (branched from master)

REVISION DETAIL
  https://phabricator.kde.org/D9139

AFFECTED FILES
  src/indexer/katehighlightingindexer.cpp

To: dhaumann, vkrause
Cc: #frameworks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20171203/11b8f23e/attachment-0001.html>


More information about the Kde-frameworks-devel mailing list