Index: clang-tools-extra/clang-tidy/bugprone/ArgumentCommentCheck.cpp =================================================================== --- clang-tools-extra/clang-tidy/bugprone/ArgumentCommentCheck.cpp +++ clang-tools-extra/clang-tidy/bugprone/ArgumentCommentCheck.cpp @@ -24,6 +24,8 @@ if (const auto *D = Node.getDeclContext()->getEnclosingNamespaceContext()) if (D->isStdNamespace()) return true; + if (Node.getLocation().isInvalid()) + return false; return Node.getASTContext().getSourceManager().isInSystemHeader( Node.getLocation()); }