We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b0ebe2 commit bf7c107Copy full SHA for bf7c107
clang-tools-extra/clangd/ParsedAST.cpp
@@ -405,13 +405,12 @@ filterFastTidyChecks(const tidy::ClangTidyCheckFactories &All,
405
std::vector<Fix>
406
clangTidyNoLintFixes(const clang::tidy::ClangTidyContext &CTContext,
407
const clang::Diagnostic &Info, const Diag &Diag) {
408
- auto RuleName = CTContext.getCheckName(Info.getID());
409
- if (RuleName.empty()) {
410
- return {};
411
- }
412
- if (!Diag.InsideMainFile) {
+ auto RuleName = CTContext.getCheckName(Diag.ID);
+ if (RuleName.empty() || Diag.Severity >= DiagnosticsEngine::Error ||
+ !Diag.InsideMainFile) {
413
return {};
414
}
+
415
auto &SrcMgr = Info.getSourceManager();
416
auto &DiagLoc = Info.getLocation();
417
0 commit comments