diff options
Diffstat (limited to 'compilerplugins/clang/nullptr.cxx')
-rw-r--r-- | compilerplugins/clang/nullptr.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/compilerplugins/clang/nullptr.cxx b/compilerplugins/clang/nullptr.cxx index dcacb1bd2112..0213b6b05c88 100644 --- a/compilerplugins/clang/nullptr.cxx +++ b/compilerplugins/clang/nullptr.cxx @@ -248,10 +248,9 @@ bool Nullptr::isInLokIncludeFile(SourceLocation spellingLocation) const { bool Nullptr::isFromCIncludeFile(SourceLocation spellingLocation) const { return !compiler.getSourceManager().isInMainFile(spellingLocation) - && (StringRef( - compiler.getSourceManager().getPresumedLoc(spellingLocation) - .getFilename()) - .endswith(".h")); + && compat::ends_with( + StringRef(compiler.getSourceManager().getPresumedLoc(spellingLocation).getFilename()), + ".h"); } bool Nullptr::isSharedCAndCppCode(SourceLocation location) const { |