diff options
Diffstat (limited to 'compilerplugins/clang/dynexcspec.cxx')
-rw-r--r-- | compilerplugins/clang/dynexcspec.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/compilerplugins/clang/dynexcspec.cxx b/compilerplugins/clang/dynexcspec.cxx index af733ec4f10f..2cedb8e046f2 100644 --- a/compilerplugins/clang/dynexcspec.cxx +++ b/compilerplugins/clang/dynexcspec.cxx @@ -13,6 +13,7 @@ #include "clang/AST/Comment.h" +#include "compat.hxx" #include "plugin.hxx" // Remove dynamic exception specifications. See the mail thread starting at @@ -115,7 +116,7 @@ public: auto s = StringRef( compiler.getSourceManager().getCharacterData(prev), n); - while (s.startswith("\\\n")) { + while (compat::starts_with(s, "\\\n")) { s = s.drop_front(2); while (!s.empty() && (s.front() == ' ' || s.front() == '\t' @@ -126,7 +127,7 @@ public: } } if (!s.empty() && s != "\\") { - if (s.startswith("//")) { + if (compat::starts_with(s, "//")) { beg = source.getBegin(); } break; |