aboutsummaryrefslogtreecommitdiff
path: root/clang-tools-extra/clang-tidy/fuchsia/DefaultArgumentsDeclarationsCheck.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang-tools-extra/clang-tidy/fuchsia/DefaultArgumentsDeclarationsCheck.cpp')
-rw-r--r--clang-tools-extra/clang-tidy/fuchsia/DefaultArgumentsDeclarationsCheck.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang-tools-extra/clang-tidy/fuchsia/DefaultArgumentsDeclarationsCheck.cpp b/clang-tools-extra/clang-tidy/fuchsia/DefaultArgumentsDeclarationsCheck.cpp
index d80511e..b22aff1 100644
--- a/clang-tools-extra/clang-tidy/fuchsia/DefaultArgumentsDeclarationsCheck.cpp
+++ b/clang-tools-extra/clang-tidy/fuchsia/DefaultArgumentsDeclarationsCheck.cpp
@@ -24,7 +24,7 @@ void DefaultArgumentsDeclarationsCheck::check(
if (!D)
return;
- SourceRange DefaultArgRange = D->getDefaultArgRange();
+ const SourceRange DefaultArgRange = D->getDefaultArgRange();
if (DefaultArgRange.getEnd() != D->getEndLoc())
return;
@@ -35,10 +35,10 @@ void DefaultArgumentsDeclarationsCheck::check(
return;
}
- SourceLocation StartLocation =
+ const SourceLocation StartLocation =
D->getName().empty() ? D->getBeginLoc() : D->getLocation();
- SourceRange RemovalRange(
+ const SourceRange RemovalRange(
Lexer::getLocForEndOfToken(StartLocation, 0, *Result.SourceManager,
Result.Context->getLangOpts()),
DefaultArgRange.getEnd());