From c2686e43c2fcd01692c0f465d6ffc741afd7d939 Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Thu, 10 Jan 2019 13:19:48 +0000 Subject: [PATCH] Correct the spelling of helpURI to helpUri. 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 | 2 +- .../Inputs/expected-sarif/sarif-multi-diagnostic-test.c.sarif | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/StaticAnalyzer/Core/SarifDiagnostics.cpp b/lib/StaticAnalyzer/Core/SarifDiagnostics.cpp index 9e9690ca0b..fecbc00010 100644 --- a/lib/StaticAnalyzer/Core/SarifDiagnostics.cpp +++ b/lib/StaticAnalyzer/Core/SarifDiagnostics.cpp @@ -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; } diff --git a/test/Analysis/diagnostics/Inputs/expected-sarif/sarif-multi-diagnostic-test.c.sarif b/test/Analysis/diagnostics/Inputs/expected-sarif/sarif-multi-diagnostic-test.c.sarif index 15880baa4e..68e23642d3 100644 --- a/test/Analysis/diagnostics/Inputs/expected-sarif/sarif-multi-diagnostic-test.c.sarif +++ b/test/Analysis/diagnostics/Inputs/expected-sarif/sarif-multi-diagnostic-test.c.sarif @@ -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" -- 2.40.0