Skip to content

Commit bfff449

Browse files
author
Carlos Gálvez
committed
Fix review comments
1 parent 1c3cd94 commit bfff449

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

clang-tools-extra/clang-tidy/ClangTidy.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
#include "llvm/Support/Process.h"
4343
#include <algorithm>
4444
#include <utility>
45+
#include <vector>
4546

4647
#if CLANG_TIDY_ENABLE_STATIC_ANALYZER
4748
#include "clang/Analysis/PathDiagnostic.h"
@@ -362,8 +363,8 @@ class IgnoreSystemHeadersConsumer : public ASTConsumer {
362363
std::vector<Decl *> Decls;
363364

364365
bool isInSystemHeader(Decl *D) {
365-
SourceManager &SM = D->getASTContext().getSourceManager();
366-
SourceLocation Loc = SM.getExpansionLoc(D->getBeginLoc());
366+
const SourceManager &SM = D->getASTContext().getSourceManager();
367+
const SourceLocation Loc = SM.getExpansionLoc(D->getBeginLoc());
367368
return SM.isInSystemHeader(Loc);
368369
}
369370
};

0 commit comments

Comments
 (0)