Kaydet (Commit) f4fac7f3 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

getExceptionSpecSourceRange is new in Clang 5

Change-Id: Ifa9223fadeeb1fde54afc99874a1b3d855073dce
üst 0f0164d6
...@@ -76,7 +76,10 @@ public: ...@@ -76,7 +76,10 @@ public:
} }
} }
bool dtor = isa<CXXDestructorDecl>(decl); bool dtor = isa<CXXDestructorDecl>(decl);
auto source = decl->getExceptionSpecSourceRange(); SourceRange source;
#if CLANG_VERSION >= 50000
source = decl->getExceptionSpecSourceRange();
#endif
if (rewriter != nullptr && source.isValid()) { if (rewriter != nullptr && source.isValid()) {
if (dtor) { if (dtor) {
if (replaceText(source, "noexcept(false)")) { if (replaceText(source, "noexcept(false)")) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment