diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-05-08 19:11:38 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-05-08 19:15:32 +0200 |
commit | 5eb6bd4db7fb3d43672c386ac9cde58e981c8aa2 (patch) | |
tree | dadf670246d763449c3bacef4acfdd2c6251d198 /compilerplugins | |
parent | e6fa865b4d5c7eb0576f7b1510077bca081ce4fb (diff) |
lopluign:staticmethods: Handle DECL_LINK
Change-Id: Ib27854a8470f3ff5b208cb949a7bd02f2a86c969
Diffstat (limited to 'compilerplugins')
-rw-r--r-- | compilerplugins/clang/staticmethods.cxx | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/compilerplugins/clang/staticmethods.cxx b/compilerplugins/clang/staticmethods.cxx index 71e3b6a2a717..036662c3ea16 100644 --- a/compilerplugins/clang/staticmethods.cxx +++ b/compilerplugins/clang/staticmethods.cxx @@ -85,15 +85,6 @@ bool StaticMethods::TraverseCXXMethodDecl(const CXXMethodDecl * pCXXMethodDecl) return true; } - // leave these alone for now, it is possible to fix them, but I don't understand how - SourceLocation canonicalLoc = pCXXMethodDecl->getCanonicalDecl()->getLocStart(); - if (compat::isMacroBodyExpansion(compiler, canonicalLoc) ) { - StringRef name { Lexer::getImmediateMacroName( - canonicalLoc, compiler.getSourceManager(), compiler.getLangOpts()) }; - if (name == "DECL_LINK") { - return true; - } - } // the CppUnit stuff uses macros and methods that can't be changed if (isDerivedFromTestFixture(pCXXMethodDecl->getParent())) { return true; |