diff options
author | Sergio Martins <smartins@kde.org> | 2019-09-03 18:27:40 +0100 |
---|---|---|
committer | Sergio Martins <smartins@kde.org> | 2019-09-03 18:27:40 +0100 |
commit | 82d6329c7db10fab545d69fc588827b328cc407b (patch) | |
tree | cc10b39e349603100de9d87a71cbee53bb9fb389 /src | |
parent | 1e94cb23d68e949dd4c734a63168b8bd46e3a064 (diff) |
Add a commit to FixitExporter
Diffstat (limited to 'src')
-rw-r--r-- | src/FixItExporter.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/FixItExporter.cpp b/src/FixItExporter.cpp index 958f7a7e..10180e04 100644 --- a/src/FixItExporter.cpp +++ b/src/FixItExporter.cpp @@ -94,6 +94,7 @@ tooling::Diagnostic FixItExporter::ConvertDiagnostic(const Diagnostic &Info) std::string messageText; if (checkName.empty()) { + // Non-built-in clang warnings have the [checkName] in the message messageText = TmpMessageText.slice(0, TmpMessageText.find_last_of('[') - 1).str(); checkName = TmpMessageText.slice(TmpMessageText.find_last_of('[') + 3, |