[clang-tools-extra] r349623 - [clang-tidy] use "const SourceManager&" parameter, NFC.
Haojian Wu via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 19 05:25:08 PST 2018
Author: hokein
Date: Wed Dec 19 05:25:08 2018
New Revision: 349623
URL: http://llvm.org/viewvc/llvm-project?rev=349623&view=rev
Log:
[clang-tidy] use "const SourceManager&" parameter, NFC.
Modified:
clang-tools-extra/trunk/clang-tidy/ClangTidyDiagnosticConsumer.cpp
Modified: clang-tools-extra/trunk/clang-tidy/ClangTidyDiagnosticConsumer.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-tidy/ClangTidyDiagnosticConsumer.cpp?rev=349623&r1=349622&r2=349623&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-tidy/ClangTidyDiagnosticConsumer.cpp (original)
+++ clang-tools-extra/trunk/clang-tidy/ClangTidyDiagnosticConsumer.cpp Wed Dec 19 05:25:08 2018
@@ -319,7 +319,7 @@ static bool IsNOLINTFound(StringRef Noli
return true;
}
-static bool LineIsMarkedWithNOLINT(SourceManager &SM, SourceLocation Loc,
+static bool LineIsMarkedWithNOLINT(const SourceManager &SM, SourceLocation Loc,
unsigned DiagID,
const ClangTidyContext &Context) {
bool Invalid;
@@ -365,8 +365,8 @@ static bool LineIsMarkedWithNOLINT(Sourc
return false;
}
-static bool LineIsMarkedWithNOLINTinMacro(SourceManager &SM, SourceLocation Loc,
- unsigned DiagID,
+static bool LineIsMarkedWithNOLINTinMacro(const SourceManager &SM,
+ SourceLocation Loc, unsigned DiagID,
const ClangTidyContext &Context) {
while (true) {
if (LineIsMarkedWithNOLINT(SM, Loc, DiagID, Context))
More information about the cfe-commits
mailing list