aboutsummaryrefslogtreecommitdiff
path: root/clang-tidy/google/UnnamedNamespaceInHeaderCheck.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang-tidy/google/UnnamedNamespaceInHeaderCheck.cpp')
-rw-r--r--clang-tidy/google/UnnamedNamespaceInHeaderCheck.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tidy/google/UnnamedNamespaceInHeaderCheck.cpp b/clang-tidy/google/UnnamedNamespaceInHeaderCheck.cpp
index 32ff6e0b..94e1729b 100644
--- a/clang-tidy/google/UnnamedNamespaceInHeaderCheck.cpp
+++ b/clang-tidy/google/UnnamedNamespaceInHeaderCheck.cpp
@@ -48,7 +48,7 @@ void UnnamedNamespaceInHeaderCheck::registerMatchers(
void UnnamedNamespaceInHeaderCheck::check(
const MatchFinder::MatchResult &Result) {
const auto *N = Result.Nodes.getNodeAs<NamespaceDecl>("anonymousNamespace");
- SourceLocation Loc = N->getLocStart();
+ SourceLocation Loc = N->getBeginLoc();
if (!Loc.isValid())
return;