]> granicus.if.org Git - clang/commitdiff
Correct the spelling of helpURI to helpUri.
authorAaron Ballman <aaron@aaronballman.com>
Thu, 10 Jan 2019 13:19:48 +0000 (13:19 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Thu, 10 Jan 2019 13:19:48 +0000 (13:19 +0000)
JSON is case sensitive and the SARIF spec uses the corrected spelling.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@350817 91177308-0d34-0410-b5e6-96231b3b80d8

lib/StaticAnalyzer/Core/SarifDiagnostics.cpp
test/Analysis/diagnostics/Inputs/expected-sarif/sarif-multi-diagnostic-test.c.sarif

index 9e9690ca0b35781b434862beaee9fa3ff8cecc01..fecbc000107931e44f693d1e34d01c41cbe5fc08 100644 (file)
@@ -285,7 +285,7 @@ static json::Object createRule(const PathDiagnostic &Diag) {
 
   std::string RuleURI = getRuleHelpURIStr(CheckName);
   if (!RuleURI.empty())
-    Ret["helpURI"] = RuleURI;
+    Ret["helpUri"] = RuleURI;
 
   return Ret;
 }
index 15880baa4e0dd98c5a970a4f371f39f5ab992dfb..68e23642d3d15daf8b71169752a155bf909a5ff4 100644 (file)
@@ -29,7 +29,7 @@
             "fullDescription": {
               "text": "Check for logical errors for function calls and Objective-C message expressions (e.g., uninitialized arguments, null function pointers)"
             },
-            "helpURI": "https://clang-analyzer.llvm.org/available_checks.html#core.CallAndMessage",
+            "helpUri": "https://clang-analyzer.llvm.org/available_checks.html#core.CallAndMessage",
             "id": "core.CallAndMessage",
             "name": {
               "text": "core.CallAndMessage"
@@ -39,7 +39,7 @@
             "fullDescription": {
               "text": "Check for division by zero"
             },
-            "helpURI": "https://clang-analyzer.llvm.org/available_checks.html#core.DivideZero",
+            "helpUri": "https://clang-analyzer.llvm.org/available_checks.html#core.DivideZero",
             "id": "core.DivideZero",
             "name": {
               "text": "core.DivideZero"