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 1c3cd94 commit bfff449Copy full SHA for bfff449
clang-tools-extra/clang-tidy/ClangTidy.cpp
@@ -42,6 +42,7 @@
42
#include "llvm/Support/Process.h"
43
#include <algorithm>
44
#include <utility>
45
+#include <vector>
46
47
#if CLANG_TIDY_ENABLE_STATIC_ANALYZER
48
#include "clang/Analysis/PathDiagnostic.h"
@@ -362,8 +363,8 @@ class IgnoreSystemHeadersConsumer : public ASTConsumer {
362
363
std::vector<Decl *> Decls;
364
365
bool isInSystemHeader(Decl *D) {
- SourceManager &SM = D->getASTContext().getSourceManager();
366
- SourceLocation Loc = SM.getExpansionLoc(D->getBeginLoc());
+ const SourceManager &SM = D->getASTContext().getSourceManager();
367
+ const SourceLocation Loc = SM.getExpansionLoc(D->getBeginLoc());
368
return SM.isInSystemHeader(Loc);
369
}
370
};
0 commit comments