forked from qt-creator/qt-creator
ClangTools: Fix comment
Change-Id: Ibf530af9d60cce45957c7a0b9c5b4e9f82407086 Reviewed-by: Cristian Adam <cristian.adam@qt.io> Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
@@ -417,7 +417,7 @@ Diagnostics readExportedDiagnostics(const Utils::FilePath &logFilePath,
|
||||
try {
|
||||
YAML::Node document = YAML::LoadFile(logFilePath.toString().toStdString());
|
||||
for (const auto &diagNode : document["Diagnostics"]) {
|
||||
// clazy omits the "DiagnosticMessage" node.
|
||||
// Since llvm/clang 9.0 the diagnostic items are wrapped in a "DiagnosticMessage" node.
|
||||
const auto msgNode = diagNode["DiagnosticMessage"];
|
||||
const YAML::Node &node = msgNode ? msgNode : diagNode;
|
||||
|
||||
|
Reference in New Issue
Block a user